OverSim
|
#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.
NTreeNode::NTreeNode | ( | const Vector2D & | _origin, |
double | _size | ||
) |
Definition at line 114 of file NTreeHelper.cc.
const NodeHandle & NTreeNode::getChildForPos | ( | const Vector2D & | pos | ) | const |
Definition at line 130 of file NTreeHelper.cc.
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.
|
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.
NodeHandle NTreeNode::children[4] |
Definition at line 71 of file NTreeHelper.h.
Referenced by getChildForPos(), and operator<<().
NTreeGroup* NTreeNode::group |
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.
NodeHandle NTreeNode::parent |
Definition at line 70 of file NTreeHelper.h.
Referenced by NTree::handleDivideCall(), and operator<<().
bool NTreeNode::parentIsRoot |
Definition at line 80 of file NTreeHelper.h.
Referenced by NTreeNode().
NTreeScope NTreeNode::scope |
Definition at line 69 of file NTreeHelper.h.
Referenced by getChildForPos(), isInScope(), operator<(), operator<<(), and operator==().
NodeHandle NTreeNode::siblings[4] |
Definition at line 77 of file NTreeHelper.h.