Tree module Module that handles trees
Adds a node as a child of another one
- Parameters
-
[in] | _pstRefNode | Reference node (add as a child of this one) |
[in] | _pstNode | Node to add |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
Adds a node as a parent of another one
- Parameters
-
[in] | _pstRefNode | Reference node (add as a parent of this one) |
[in] | _pstNode | Node to add |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
Adds a node at the root of a tree
- Parameters
-
[in] | _pstTree | Concerned tree |
[in] | _pstNode | Node to add |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
Adds a node as a sibling of another one
- Parameters
-
[in] | _pstRefNode | Reference node (add as a sibling of this one) |
[in] | _pstNode | Node to add |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
Cleans a tree
- Parameters
-
[in] | _pstTree | Concerned tree |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
Gets first child node
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxTREE_NODE / orxNULL
Definition at line 155 of file orxTree.h.
static orxINLINE orxU32 orxTree_GetCount |
( |
const orxTREE * |
_pstTree | ) |
|
|
static |
Gets a tree count
- Parameters
-
[in] | _pstTree | Concerned tree |
- Returns
- Number of nodes in tree
Definition at line 208 of file orxTree.h.
Gets parent node
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxTREE_NODE / orxNULL
Definition at line 142 of file orxTree.h.
Gets previous sibling node
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxTREE_NODE / orxNULL
Definition at line 181 of file orxTree.h.
Gets a tree root
- Parameters
-
[in] | _pstTree | Concerned tree |
- Returns
- orxTREE_NODE / orxNULL
Definition at line 195 of file orxTree.h.
Gets (next) sibling node
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxTREE_NODE / orxNULL
Definition at line 168 of file orxTree.h.
Gets a node tree
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxTREE / orxNULL
Definition at line 129 of file orxTree.h.
Moves a node as a child of another one of the same tree
- Parameters
-
[in] | _pstRefNode | Reference node (move as a child of this one) |
[in] | _pstNode | Node to move |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
Removes a node from its tree
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE