#include <NTreeHelper.h>
Public Member Functions | |
| bool | isInScope (const Vector2D &p) const |
| const NodeHandle & | getChildForPos (const Vector2D &pos) const |
| NTreeNode (const NTreeScope &_scope) | |
| NTreeNode (const Vector2D &_origin, double _size) | |
Public Attributes | |
| NTreeScope | scope |
| NodeHandle | parent |
| NodeHandle | children [4] |
| NTreeGroup * | group |
| unsigned int | aggChildCount [4] |
| NodeHandle | siblings [4] |
| std::set< NodeHandle > | childChildren [4] |
| simtime_t | lastPing |
| bool | parentIsRoot |
Friends | |
| bool | operator== (const NTreeNode &a, const NTreeNode &b) |
| bool | operator< (const NTreeNode &a, const NTreeNode &b) |
| std::ostream & | operator<< (std::ostream &Stream, const NTreeNode &node) |
Definition at line 66 of file NTreeHelper.h.
| NTreeNode::NTreeNode | ( | const NTreeScope & | _scope | ) |
Definition at line 104 of file NTreeHelper.cc.
:
scope(_scope)
{
for( unsigned int i = 0; i < 4; ++i ){
aggChildCount[i] = 0;
}
group = 0;
parentIsRoot = false;
}
| NTreeNode::NTreeNode | ( | const Vector2D & | _origin, | |
| double | _size | |||
| ) |
Definition at line 114 of file NTreeHelper.cc.
:
scope(_origin,_size)
{
for( unsigned int i = 0; i < 4; ++i ){
aggChildCount[i] = 0;
}
group = 0;
parentIsRoot = false;
}
| const NodeHandle & NTreeNode::getChildForPos | ( | const Vector2D & | pos | ) | const |
Definition at line 130 of file NTreeHelper.cc.
{
if (!isInScope( pos ) ) return NodeHandle::UNSPECIFIED_NODE;
return children[ scope.origin.getQuadrant(pos) ];
}
| bool NTreeNode::isInScope | ( | const Vector2D & | p | ) | const |
Definition at line 124 of file NTreeHelper.cc.
Referenced by getChildForPos().
Definition at line 141 of file NTreeHelper.cc.
| std::ostream& operator<< | ( | std::ostream & | Stream, | |
| const NTreeNode & | node | |||
| ) | [friend] |
Definition at line 136 of file NTreeHelper.cc.
| unsigned int NTreeNode::aggChildCount[4] |
Definition at line 75 of file NTreeHelper.h.
Referenced by NTreeNode().
| std::set<NodeHandle> NTreeNode::childChildren[4] |
Definition at line 78 of file NTreeHelper.h.
Definition at line 71 of file NTreeHelper.h.
Referenced by getChildForPos(), and operator<<().
Definition at line 73 of file NTreeHelper.h.
Referenced by NTree::handleAppMessage(), NTree::handleDivideCall(), NTreeNode(), and operator<<().
| simtime_t NTreeNode::lastPing |
Definition at line 79 of file NTreeHelper.h.
Definition at line 70 of file NTreeHelper.h.
Referenced by NTree::handleDivideCall(), and operator<<().
Definition at line 80 of file NTreeHelper.h.
Referenced by NTreeNode().
Definition at line 69 of file NTreeHelper.h.
Referenced by getChildForPos(), isInScope(), operator<(), operator<<(), and operator==().
Definition at line 77 of file NTreeHelper.h.
1.7.1