14 #ifndef NTUPLESORTER_H 15 #define NTUPLESORTER_H 57 void rowwiseCopy ( std::vector < std::vector < double > * > & row_copy );
81 NTuple * getNTuple ()
const;
89 void setSorting (
int column );
106 void addRow (
const std::vector < double > & row );
111 virtual void eraseRow (
unsigned int index );
115 unsigned int columns ( )
const;
119 unsigned int rows ( )
const;
123 const std::vector < double > & getRow (
unsigned int index )
const;
129 bool operator () ( std::vector < double > * x,
130 std::vector < double > * y )
const;
136 #endif // NTUPLESORTER_H bool m_increasing
The direction of the sort.
int m_column
The column used for sorting, or -1 if sorting is disabled.
A DataSource class implemented with std::vector<double> to store the column data. ...
#define MDL_HIPPOPLOT_API
A helper class to sort and keep sorted an NTuple.
NTuple * m_ntuple
The NTuple object that will be used.
virtual ~NTupleSorter()
The virtual destructor.
column
The column indices for 2 dimension data point tuple.