Node/Object Allocation/Deletion 函数

详细描述

Macros

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

函数

GeListHead AllocListHead ()
GeListNode AllocListNode ( Int32 id)
GeListNode AllocSmallListNode ( Int32 id)
GeListNode AllocMultiNode ( 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() .

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

◆  AllocListNode()

GeListNode * AllocListNode ( Int32   id )

Allocates a RegisterNodePlugin() registered node.

参数
[in] id The node plugin ID.
返回
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.

参数
[in] id The small node plugin ID.
返回
The allocated small list node, or nullptr if the allocation failed.

◆  AllocMultiNode()

GeListNode * AllocMultiNode ( Int32 id_array ,
Int32   id_cnt  
)

Private .