OverSim
|
#include <NTreeHelper.h>
Public Member Functions | |
NTreeScope () | |
NTreeScope (const Vector2D &_origin, double _size) | |
void | resize (const Vector2D &_origin, double _size) |
bool | contains (const Vector2D &) const |
NTreeScope | getSubScope (unsigned int quadrant) const |
bool | isValid () const |
Public Attributes | |
Vector2D | origin |
double | size |
Friends | |
bool | operator== (const NTreeScope &a, const NTreeScope &b) |
bool | operator< (const NTreeScope &a, const NTreeScope &b) |
std::ostream & | operator<< (std::ostream &Stream, const NTreeScope &scope) |
Definition at line 30 of file NTreeHelper.h.
NTreeScope::NTreeScope | ( | ) |
NTreeScope::NTreeScope | ( | const Vector2D & | _origin, |
double | _size | ||
) |
Definition at line 8 of file NTreeHelper.cc.
bool NTreeScope::contains | ( | const Vector2D & | point | ) | const |
Definition at line 20 of file NTreeHelper.cc.
Referenced by NTree::handleMove(), NTreeGroup::isInScope(), and NTreeNode::isInScope().
NTreeScope NTreeScope::getSubScope | ( | unsigned int | quadrant | ) | const |
Definition at line 26 of file NTreeHelper.cc.
Referenced by NTree::handleDivideCall(), NTree::handlePingCall(), and NTree::handlePingCallTimeout().
|
inline |
Definition at line 39 of file NTreeHelper.h.
Referenced by contains(), and getSubScope().
void NTreeScope::resize | ( | const Vector2D & | _origin, |
double | _size | ||
) |
Definition at line 14 of file NTreeHelper.cc.
|
friend |
|
friend |
Definition at line 61 of file NTreeHelper.cc.
|
friend |
Vector2D NTreeScope::origin |
Definition at line 40 of file NTreeHelper.h.
Referenced by contains(), NTree::divideNode(), NTreeNode::getChildForPos(), getSubScope(), NTree::handleMove(), NTree::handlePingCallTimeout(), operator<(), operator<<(), operator==(), resize(), and NTree::sendToGroup().
double NTreeScope::size |
Definition at line 41 of file NTreeHelper.h.
Referenced by contains(), NTree::divideNode(), getSubScope(), NTree::handleJoinCall(), NTree::handleMove(), NTree::handlePingCallTimeout(), isValid(), NTreeScope(), operator<(), operator<<(), operator==(), and resize().