latest version v1.9 - last update 10 Apr 2010 |
At the leave nodes, a list of elements of this type will contain the points and their corresponding data. More...
#include <ltiKdTree.h>
Public Member Functions | |
element () | |
element (const T &pos, const D &dat) | |
element (const element &other) | |
~element () | |
value_type & | operator[] (const int a) |
const value_type & | operator[] (const int a) const |
int | size () const |
element & | copy (const element &other) |
element & | operator= (const element &other) |
element * | clone () const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
Public Attributes | |
T | point |
D | data |
At the leave nodes, a list of elements of this type will contain the points and their corresponding data.
Implementation must be here due to MS VC++ bug
lti::kdTree< T, D, U >::element::element | ( | ) | [inline] |
Constructor.
Referenced by lti::kdTree< T, D, U >::element::clone().
lti::kdTree< T, D, U >::element::element | ( | const T & | pos, | |
const D & | dat | |||
) | [inline] |
lti::kdTree< T, D, U >::element::element | ( | const element & | other | ) | [inline] |
Copy constructor.
lti::kdTree< T, D, U >::element::~element | ( | ) | [inline] |
destructor
element* lti::kdTree< T, D, U >::element::clone | ( | ) | const [inline] |
clone member
References lti::kdTree< T, D, U >::element::element().
element& lti::kdTree< T, D, U >::element::copy | ( | const element & | other | ) | [inline] |
copy method
Reimplemented from lti::ioObject.
References lti::kdTree< T, D, U >::element::data, and lti::kdTree< T, D, U >::element::point.
Referenced by lti::kdTree< T, D, U >::element::operator=().
element& lti::kdTree< T, D, U >::element::operator= | ( | const element & | other | ) | [inline] |
const value_type& lti::kdTree< T, D, U >::element::operator[] | ( | const int | a | ) | const [inline] |
shortcut to access the point value at each dimension
value_type& lti::kdTree< T, D, U >::element::operator[] | ( | const int | a | ) | [inline] |
shortcut to access the point value at each dimension
virtual bool lti::kdTree< T, D, U >::element::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [inline, virtual] |
read the parameters from the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also read, otherwise only the data block will be read. |
Reimplemented from lti::ioObject.
References lti::kdTree< T, D, U >::element::data, lti::ioHandler::readBegin(), lti::ioHandler::readDataSeparator(), and lti::ioHandler::readEnd().
Referenced by lti::kdTree< T, D, U >::node::read().
int lti::kdTree< T, D, U >::element::size | ( | ) | const [inline] |
shortcut to access the size of the points stored
virtual bool lti::kdTree< T, D, U >::element::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [inline, virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::ioObject.
References lti::kdTree< T, D, U >::element::data, lti::ioHandler::writeBegin(), lti::ioHandler::writeDataSeparator(), and lti::ioHandler::writeEnd().
D lti::kdTree< T, D, U >::element::data |
data contained in this element.
Referenced by lti::kdTree< T, D, U >::element::copy(), lti::kdTree< T, D, U >::element::read(), and lti::kdTree< T, D, U >::element::write().
T lti::kdTree< T, D, U >::element::point |
n-dimensional point representing the position of this element in the n-dimensional space
Referenced by lti::kdTree< T, D, U >::element::copy().