Tree module Module that handles trees
◆ orxTree_AddChild()
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
◆ orxTree_AddParent()
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
◆ orxTree_AddRoot()
Adds a node at the root of a tree
- Parameters
-
[in] | _pstTree | Concerned tree |
[in] | _pstNode | Node to add |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
◆ orxTree_AddSibling()
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
◆ orxTree_Clean()
Cleans a tree
- Parameters
-
[in] | _pstTree | Concerned tree |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
◆ orxTree_GetChild()
Gets first child node
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxTREE_NODE / orxNULL
Definition at line 155 of file orxTree.h.
◆ orxTree_GetCount()
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.
◆ orxTree_GetParent()
Gets parent node
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxTREE_NODE / orxNULL
Definition at line 142 of file orxTree.h.
◆ orxTree_GetPrevious()
Gets previous sibling node
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxTREE_NODE / orxNULL
Definition at line 181 of file orxTree.h.
◆ orxTree_GetRoot()
Gets a tree root
- Parameters
-
[in] | _pstTree | Concerned tree |
- Returns
- orxTREE_NODE / orxNULL
Definition at line 195 of file orxTree.h.
◆ orxTree_GetSibling()
Gets (next) sibling node
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxTREE_NODE / orxNULL
Definition at line 168 of file orxTree.h.
◆ orxTree_GetTree()
Gets a node tree
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxTREE / orxNULL
Definition at line 129 of file orxTree.h.
◆ orxTree_MoveAsChild()
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
◆ orxTree_Remove()
Removes a node from its tree
- Parameters
-
[in] | _pstNode | Concerned node |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE