OpenMS  2.7.0
Public Types | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
KDTreeFeatureNode Class Reference

A node of the kD-tree with pointer to corresponding data and index. More...

#include <OpenMS/ANALYSIS/QUANTITATION/KDTreeFeatureNode.h>

Collaboration diagram for KDTreeFeatureNode:
[legend]

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...
 
KDTreeFeatureNodeoperator= (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

KDTreeFeatureMapsdata_
 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...
 

Detailed Description

A node of the kD-tree with pointer to corresponding data and index.

Member Typedef Documentation

◆ value_type

typedef double value_type

libkdtree++ needs this typedef

Constructor & Destructor Documentation

◆ KDTreeFeatureNode() [1/3]

KDTreeFeatureNode ( KDTreeFeatureMaps data,
Size  idx 
)

Constructor.

◆ KDTreeFeatureNode() [2/3]

Copy constructor - copy the pointer, use same data object.

◆ ~KDTreeFeatureNode()

virtual ~KDTreeFeatureNode ( )
virtual

Destructor.

◆ KDTreeFeatureNode() [3/3]

KDTreeFeatureNode ( )
private

Default constructor is not supposed to be called.

Member Function Documentation

◆ getIndex()

Size getIndex ( ) const

Return index of corresponding feature in data_.

◆ operator=()

KDTreeFeatureNode& operator= ( KDTreeFeatureNode const &  rhs)

Assignment operator - copy the pointer, use same data object.

◆ operator[]()

value_type operator[] ( Size  i) const

Needed for 2D range queries using libkdtree++. [0] returns RT, [1] m/z.

Member Data Documentation

◆ data_

KDTreeFeatureMaps* data_
protected

Pointer to the actual data.

◆ idx_

Size idx_
protected

Index of this feature.