Public Member Functions | |
CNodeList () | |
Construct an empty node list. | |
CNodeList (const CNodeList &rhs) | |
CNodeList & | operator= (const CNodeList &rhs) |
void | PushNode (Node *pNode) |
Push the given node onto the list. | |
Node * | PopNode () |
Pop the head of the list and return it. Returns 0 if the list is empty. | |
Node * | Head () const |
Return the head of the list. Returns 0 if the list is empty. | |
void | InsertAfter (Node *pNode, Node *pNewNode) |
Insert pNewNode after pNode in the list. If pNode is 0 then this degenerates to a PushNode(). | |
unsigned long | Count () const |
Returns the number of nodes in the list. | |
bool | IsEmpty () const |
Returns true if the list contains no nodes. | |
Friends | |
void | Node::RemoveFromList () |
Classes | |
class | Node |
The node class that classes must derive from to be able to be stored in the list. More... |
CNodeList | ( | ) |
Construct an empty node list.
void PushNode | ( | Node * | pNode | ) |
Push the given node onto the list.
CNodeList::Node * PopNode | ( | ) |
CNodeList::Node * Head | ( | ) | const |
Insert pNewNode after pNode in the list. If pNode is 0 then this degenerates to a PushNode().
unsigned long Count | ( | ) | const |
Returns the number of nodes in the list.
bool IsEmpty | ( | ) | const |
Returns true if the list contains no nodes.
void Node::RemoveFromList | ( | ) | [friend] |