OpenMS
2.4.0
|
A node of the kD-tree with pointer to corresponding data and index. More...
#include <OpenMS/ANALYSIS/QUANTITATION/KDTreeFeatureNode.h>
Public Types | |
typedef double | value_type |
libkdtree++ needs this typedef More... | |
Public Member Functions | |
KDTreeFeatureNode (KDTreeFeatureMaps *data, Size idx) | |
Constructor. More... | |
KDTreeFeatureNode (const KDTreeFeatureNode &rhs) | |
Copy constructor - copy the pointer, use same data object. More... | |
KDTreeFeatureNode & | operator= (KDTreeFeatureNode const &rhs) |
Assignment operator - copy the pointer, use same data object. More... | |
virtual | ~KDTreeFeatureNode () |
Destructor. More... | |
value_type | operator[] (Size i) const |
Needed for 2D range queries using libkdtree++. [0] returns RT, [1] m/z. More... | |
Size | getIndex () const |
Return index of corresponding feature in data_. More... | |
Protected Attributes | |
KDTreeFeatureMaps * | data_ |
Pointer to the actual data. More... | |
Size | idx_ |
Index of this feature. More... | |
Private Member Functions | |
KDTreeFeatureNode () | |
Default constructor is not supposed to be called. More... | |
A node of the kD-tree with pointer to corresponding data and index.
typedef double value_type |
libkdtree++ needs this typedef
KDTreeFeatureNode | ( | KDTreeFeatureMaps * | data, |
Size | idx | ||
) |
Constructor.
KDTreeFeatureNode | ( | const KDTreeFeatureNode & | rhs | ) |
Copy constructor - copy the pointer, use same data object.
|
virtual |
Destructor.
|
private |
Default constructor is not supposed to be called.
Size getIndex | ( | ) | const |
Return index of corresponding feature in data_.
KDTreeFeatureNode& operator= | ( | KDTreeFeatureNode const & | rhs | ) |
Assignment operator - copy the pointer, use same data object.
value_type operator[] | ( | Size | i | ) | const |
Needed for 2D range queries using libkdtree++. [0] returns RT, [1] m/z.
|
protected |
Pointer to the actual data.
|
protected |
Index of this feature.