#include <c4d_baselist.h>
Stores a list of GeListNode objects.
Private Member Functions | |
GeListHead () | |
~GeListHead () | |
Navigation | |
void | InsertBefore (GeListNode *bl) |
void | InsertAfter (GeListNode *bl) |
void | InsertUnder (GeListNode *bl) |
void | InsertUnderLast (GeListNode *bl) |
void | Remove () |
Alloc/Free | |
static GeListHead * | Alloc () |
static void | Free (GeListHead *&v) |
Miscellaneous | |
void | SetParent (GeListNode *parent) |
GeListNode * | GetParent () |
const GeListNode * | GetParent () const |
GeListNode * | GetFirst () |
const GeListNode * | GetFirst () const |
GeListNode * | GetLast () |
const GeListNode * | GetLast () const |
void | FlushAll () |
Insertion | |
void | InsertFirst (GeListNode *bn) |
void | InsertLast (GeListNode *bn) |
void | Insert (GeListNode *bn, GeListNode *parent, GeListNode *prev) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
|
static |
void SetParent | ( | GeListNode * | parent | ) |
Sets the parent of the list head.
Usually called directly after the list head is allocated.
[in] | parent | The new parent. The caller owns the pointed parent. |
GeListNode* GetParent | ( | ) |
Gets the parent of the list head.
For the tag list head this would be the object, for the object list head this would be the document etc.
const GeListNode* GetParent | ( | ) | const |
GeListNode* GetFirst | ( | ) |
Gets the first node in the list.
const GeListNode* GetFirst | ( | ) | const |
GeListNode* GetLast | ( | ) |
Gets the last node in the list.
const GeListNode* GetLast | ( | ) | const |
void FlushAll | ( | ) |
Clears the list, removing all nodes.
void InsertFirst | ( | GeListNode * | bn | ) |
Inserts bn as the first element in the list.
[in] | bn | The node to insert first. The caller owns the pointed node. |
void InsertLast | ( | GeListNode * | bn | ) |
Inserts bn as the last element in the list.
[in] | bn | The node to insert last. The caller owns the pointed node. |
void Insert | ( | GeListNode * | bn, |
GeListNode * | parent, | ||
GeListNode * | prev | ||
) |
Inserts bn as a child of parent or after prev.
[in] | bn | The node to insert. The caller owns the pointed node. |
[in] | parent | The node to insert bn as child. The caller owns the pointed node. |
[in] | prev | The node to insert bn after. The caller owns the pointed node. |