#include <Node.h>
Public Member Functions | |
Node () | |
Node (NodeObject *nToInit) | |
Node (const Node &nToCopy) | |
~Node () | |
Node & | operator= (const Node &rhs) |
Node & | operator= (NodeObject *rhs) |
bool | IsNull () |
Returns true if this Node hasn't been assigned yet. | |
operator NodeObject * () | |
NodeObject & | operator * () |
NodeObject * | Get () |
const NodeObject * | Get () const |
NodeObject * | operator-> () |
const NodeObject * | operator-> () const |
bool | operator== (const Node &rhs) const |
Perform a pointer-based comparison on the held NodeObjects to see if they're equal. | |
bool | operator< (const Node &rhs) const |
Perform a pointer-based comparison. | |
Private Member Functions | |
void | Hook (NodeObject *n) |
Hook self to a nodeobject. | |
void | Unhook (NodeObject *n) |
Unhook self from a nodeobject. If no more are hooked, NodeObject will be deleted. | |
Private Attributes | |
NodeObject * | This |
Pointer to the actual NodeObject. |
You can use these to reference NodeObjects. These can be copied to make safe, shallow copies of NodeObjects. Once the last one of these references to any one NodeObject is destroyed, the NodeObject itself is destroyed.
Definition at line 27 of file Node.h.
Node::Node | ( | NodeObject * | nToInit | ) |
Node & Node::operator= | ( | NodeObject * | rhs | ) |
bool Node::IsNull | ( | ) | [inline] |
Node::operator NodeObject * | ( | ) | [inline] |
NodeObject& Node::operator * | ( | ) | [inline] |
NodeObject* Node::Get | ( | ) | [inline] |
const NodeObject* Node::Get | ( | ) | const [inline] |
NodeObject* Node::operator-> | ( | ) | [inline] |
const NodeObject* Node::operator-> | ( | ) | const [inline] |
bool Node::operator== | ( | const Node & | rhs | ) | const [inline] |
bool Node::operator< | ( | const Node & | rhs | ) | const [inline] |
void Node::Hook | ( | NodeObject * | n | ) | [private] |
void Node::Unhook | ( | NodeObject * | n | ) | [private] |
Unhook self from a nodeobject. If no more are hooked, NodeObject will be deleted.
NodeObject* Node::This [private] |