Detailed Description
Tree module Module that handles trees
Function Documentation
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
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 147 of file orxTree.h.
| static orxINLINE orxU32 orxTree_GetCounter |
( |
const orxTREE * |
_pstTree ) |
[static] |
Gets a tree counter
- Parameters:
-
| [in] | _pstTree | Concerned tree |
- Returns:
- Number of nodes in tree
Definition at line 187 of file orxTree.h.
Gets parent node
- Parameters:
-
| [in] | _pstNode | Concerned node |
- Returns:
- orxTREE_NODE / orxNULL
Definition at line 134 of file orxTree.h.
Gets a tree root
- Parameters:
-
| [in] | _pstTree | Concerned tree |
- Returns:
- orxTREE_NODE / orxNULL
Definition at line 174 of file orxTree.h.
Gets sibling node
- Parameters:
-
| [in] | _pstNode | Concerned node |
- Returns:
- orxTREE_NODE / orxNULL
Definition at line 160 of file orxTree.h.
Gets a node tree
- Parameters:
-
| [in] | _pstNode | Concerned node |
- Returns:
- orxTREE / orxNULL
Definition at line 121 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