Mantid
|
NNDataPoints is a thin RAII wrapper class around the ANNpointArray type. More...
#include <NearestNeighbours.h>
Public Member Functions | |
ANNcoord * | mutablePoint (const int i) |
Access a raw point in the collection of points. More... | |
NNDataPoints (const int nPts, const int nElems) | |
Construct a new set of data points. More... | |
ANNpointArray | rawData () |
Return a handle to the raw ANNpointArray wrapped by this class. More... | |
~NNDataPoints () | |
Private Attributes | |
ANNpointArray | m_data |
Array of points for use with NN search. More... | |
const int | m_nPts |
Number of points stored. More... | |
NNDataPoints is a thin RAII wrapper class around the ANNpointArray type.
This takes care of the proper allocation and deallocation of memory.
Definition at line 41 of file NearestNeighbours.h.
|
inline |
Construct a new set of data points.
nPts | :: the number of data points |
nElems | :: the number of elements for each point |
Definition at line 48 of file NearestNeighbours.h.
|
inline |
Definition at line 50 of file NearestNeighbours.h.
References m_data.
|
inline |
Access a raw point in the collection of points.
This will check the index used is within bounds and return nullptr if outside of those bounds
i | :: the index of the point to return a handle to |
Definition at line 66 of file NearestNeighbours.h.
|
inline |
Return a handle to the raw ANNpointArray wrapped by this class.
Definition at line 56 of file NearestNeighbours.h.
References m_data.
|
private |
Array of points for use with NN search.
Definition at line 77 of file NearestNeighbours.h.
Referenced by mutablePoint(), NNDataPoints(), rawData(), and ~NNDataPoints().
|
private |
Number of points stored.
Definition at line 75 of file NearestNeighbours.h.
Referenced by mutablePoint(), and NNDataPoints().