34#ifndef OCTOMAP_OCTREE_DATA_NODE_H
35#define OCTOMAP_OCTREE_DATA_NODE_H
64 template<
typename NODE,
typename I>
110 std::istream&
readData(std::istream &s);
113 std::ostream&
writeData(std::ostream &s)
const;
Definition: OcTreeDataNode.h:43
OcTree base class, to be used with with any kind of OcTreeDataNode.
Definition: OcTreeBaseImpl.h:75
Basic node in the OcTree that can hold arbitrary data of type T in value.
Definition: OcTreeDataNode.h:63
OCTOMAP_DEPRECATED(bool childExists(unsigned int i) const)
Test whether the i-th child exists.
AbstractOcTreeNode ** children
pointer to array of children, may be NULL
Definition: OcTreeDataNode.h:126
T DataType
Make the templated data type available from the outside.
Definition: OcTreeDataNode.h:117
T value
stored data (payload)
Definition: OcTreeDataNode.h:128
bool operator==(const OcTreeDataNode &rhs) const
Equals operator, compares if the stored value is identical.
Definition: OcTreeDataNode.hxx:78
void setValue(T v)
sets value to be stored in the node
Definition: OcTreeDataNode.h:105
std::ostream & writeData(std::ostream &s) const
Write node payload (data only) to binary stream.
Definition: OcTreeDataNode.hxx:121
OcTreeDataNode()
Definition: OcTreeDataNode.hxx:37
void allocChildren()
Definition: OcTreeDataNode.hxx:131
OCTOMAP_DEPRECATED(bool hasChildren() const)
T getValue() const
Definition: OcTreeDataNode.h:103
std::istream & readData(std::istream &s)
Read node payload (data only) from binary stream.
Definition: OcTreeDataNode.hxx:114
void copyData(const OcTreeDataNode &from)
Copy the payload (data in "value") from rhs into this node Opposed to copy ctor, this does not clone ...
Definition: OcTreeDataNode.hxx:73
~OcTreeDataNode()
Delete only own members. OcTree maintains tree structure and must have deleted children already.
Definition: OcTreeDataNode.hxx:65
Namespace the OctoMap library and visualization tools.