Node/Object Allocation/Deletion

Detailed Description

Macros

#define FreeListNode(v)
 
#define blDelete(v)
 

Functions

GeListHeadAllocListHead ()
 
GeListNodeAllocListNode (Int32 id)
 
GeListNodeAllocSmallListNode (Int32 id)
 
GeListNodeAllocMultiNode (const Int32 *id_array, Int32 id_cnt)
 

Macro Definition Documentation

◆ FreeListNode

#define FreeListNode (   v)

Destructs an AllocListNode() allocated node. It is basically the same as BaseList2D::Free().

◆ blDelete

#define blDelete (   v)

Destructs objects derived from BaseList2D. It is basically the same as BaseList2D::Free().

Function Documentation

◆ AllocListHead()

GeListHead* AllocListHead ( )

Allocates a list head. Destroy the allocated list head with FreeListNode().

Returns
The allocated list head node, or nullptr if the allocation failed.

◆ AllocListNode()

GeListNode* AllocListNode ( Int32  id)

Allocates a RegisterNodePlugin() registered node.

Parameters
[in]idThe node plugin ID.
Returns
The allocated list node, or nullptr if the allocation failed.

◆ AllocSmallListNode()

GeListNode* AllocSmallListNode ( Int32  id)

Allocates a RegisterNodePlugin() registered node with the PLUGINFLAG_SMALLNODE flag set.

Parameters
[in]idThe small node plugin ID.
Returns
The allocated small list node, or nullptr if the allocation failed.

◆ AllocMultiNode()

GeListNode* AllocMultiNode ( const Int32 id_array,
Int32  id_cnt 
)

Private.