ARTS  2.0.49
sorting.h File Reference

Contains sorting routines. More...

#include <algorithm>
#include <functional>
#include "matpack.h"
#include "array.h"

Go to the source code of this file.

Classes

class  IndexComp< T >
 IndexComp. More...
 

Functions

template<typename T >
void get_sorted_indexes (ArrayOfIndex &sorted, const T &data)
 get_sorted_indexes More...
 

Detailed Description

Contains sorting routines.

Author
Oliver Lemke
Date
2003-08-20

Definition in file sorting.h.

Function Documentation

◆ get_sorted_indexes()

template<typename T >
void get_sorted_indexes ( ArrayOfIndex sorted,
const T &  data 
)

get_sorted_indexes

The output array contains the sorted indexes of the input data.

The following member functions must be defined for the input data type: T.begin, T.end, T.operator[], T.operator<

Furthermore, it must provide the type T::const_iterator.

Parameters
sortedOutput array with sorted indexes
dataData to sort
Author
Oliver Lemke olemk.nosp@m.e@co.nosp@m.re-du.nosp@m.mp.i.nosp@m.nfo
Date
2003-08-20

Definition at line 79 of file sorting.h.

Referenced by find_effective_channel_boundaries(), pnd_fieldSetup(), testVector(), VectorInsertGridPoints(), and za_gridOpt().