last update 20 Sep 2009 |
#include <cvrKdTree.h>
Public Member Functions | |
element () | |
element (const T &pos, const D &dat) | |
element (const element &other) | |
~element () | |
kdTree< T, D, U >::value_type & | operator[] (const int a) |
const kdTree< T, D, U > ::value_type & | operator[] (const int a) const |
int | size () const |
const std::string & | name () const |
kdTree< T, D, U >::element & | copy (const element &other) |
kdTree< T, D, U >::element & | operator= (const element &other) |
kdTree< T, D, U >::element * | clone () const |
kdTree< T, D, U >::element * | newInstance () 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 |
Implementation must be here due to MS VC++ bug
cvr::kdTree< T, D, U >::kdTree::element::element | ( | ) |
Constructor.
cvr::kdTree< T, D, U >::kdTree::element::element | ( | const T & | pos, | |
const D & | dat | |||
) |
cvr::kdTree< T, D, U >::kdTree::element::element | ( | const element & | other | ) |
Copy constructor.
cvr::kdTree< T, D, U >::kdTree::element::~element | ( | ) |
destructor
kdTree<T,D,U>::element* cvr::kdTree< T, D, U >::kdTree::element::clone | ( | ) | const [virtual] |
kdTree<T,D,U>::element& cvr::kdTree< T, D, U >::kdTree::element::copy | ( | const element & | other | ) | [inline] |
copy method
const std::string& cvr::kdTree< T, D, U >::kdTree::element::name | ( | ) | const [virtual] |
kdTree<T,D,U>::element* cvr::kdTree< T, D, U >::kdTree::element::newInstance | ( | ) | const [virtual] |
kdTree<T,D,U>::element& cvr::kdTree< T, D, U >::kdTree::element::operator= | ( | const element & | other | ) | [inline] |
copy operator
const kdTree<T,D,U>::value_type& cvr::kdTree< T, D, U >::kdTree::element::operator[] | ( | const int | a | ) | const [inline] |
shortcut to access the point value at each dimension
kdTree<T,D,U>::value_type& cvr::kdTree< T, D, U >::kdTree::element::operator[] | ( | const int | a | ) | [inline] |
shortcut to access the point value at each dimension
virtual bool cvr::kdTree< T, D, U >::kdTree::element::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [virtual] |
read the element 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 cvr::ioObject.
int cvr::kdTree< T, D, U >::kdTree::element::size | ( | ) | const [inline] |
shortcut to acces the size of the points stored
virtual bool cvr::kdTree< T, D, U >::kdTree::element::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [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 cvr::ioObject.
D cvr::kdTree< T, D, U >::kdTree::element::data |
data contained in this element.
T cvr::kdTree< T, D, U >::kdTree::element::point |