NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/cLib/c_tree.hpp>
A tree node. See cTreeMg_c.
The tree is represented as a doubly-linked LCRS tree.
Definition at line 7 of file c_tree.hpp.
Public Member Functions | |
cTreeNd_c () | |
Constructs a new tree node. | |
cTreeNd_c * | getTreeNext () const |
Gets the next node in preorder traversal order. | |
cTreeNd_c * | getTreeNextNotChild () const |
Gets the next node in preorder traversal order, excluding the node's children. | |
cTreeNd_c * | getParent () const |
cTreeNd_c * | getChild () const |
cTreeNd_c * | getBrPrev () const |
cTreeNd_c * | getBrNext () const |
Protected Member Functions | |
void | forcedClear () |
Clears all fields. | |
Protected Attributes | |
cTreeNd_c * | mpParent |
The parent node. | |
cTreeNd_c * | mpChild |
The child node. | |
cTreeNd_c * | mpPrev |
The previous sibling node. | |
cTreeNd_c * | mpNext |
The next sibling node. | |
cTreeNd_c::cTreeNd_c | ( | ) |
Constructs a new tree node.
Definition at line 4 of file c_tree.cpp.
cTreeNd_c * cTreeNd_c::getTreeNext | ( | ) | const |
Gets the next node in preorder traversal order.
Definition at line 92 of file c_tree.cpp.
cTreeNd_c * cTreeNd_c::getTreeNextNotChild | ( | ) | const |
Gets the next node in preorder traversal order, excluding the node's children.
Definition at line 103 of file c_tree.cpp.
|
inline |
Definition at line 18 of file c_tree.hpp.
|
inline |
Definition at line 19 of file c_tree.hpp.
|
inline |
Definition at line 20 of file c_tree.hpp.
|
inline |
Definition at line 21 of file c_tree.hpp.
|
protected |
Clears all fields.
Definition at line 8 of file c_tree.cpp.
|
protected |
The parent node.
Definition at line 27 of file c_tree.hpp.
|
protected |
The child node.
Definition at line 28 of file c_tree.hpp.
|
protected |
The previous sibling node.
Definition at line 29 of file c_tree.hpp.
|
protected |
The next sibling node.
Definition at line 30 of file c_tree.hpp.