NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/cLib/c_tree.hpp>
A tree container. See cTreeNd_c.
Definition at line 37 of file c_tree.hpp.
Public Member Functions | |
cTreeMg_c () | |
Constructs a new tree container. | |
bool | addTreeNode (cTreeNd_c *node, cTreeNd_c *parent) |
Adds a node to the tree, either to the root node or to a specified parent node. | |
bool | removeTreeNode (cTreeNd_c *node) |
Removes a node from the tree. | |
Protected Attributes | |
cTreeNd_c * | mpRootNode |
The root node of the tree. | |
|
inline |
Constructs a new tree container.
Definition at line 40 of file c_tree.hpp.
Adds a node to the tree, either to the root node or to a specified parent node.
node | The node to add. |
parent | The parent node to attach it to, or nullptr to attach it to the tree root. |
Definition at line 15 of file c_tree.cpp.
bool cTreeMg_c::removeTreeNode | ( | cTreeNd_c * | node | ) |
Removes a node from the tree.
node | The node to remove. |
Definition at line 57 of file c_tree.cpp.
|
protected |
The root node of the tree.
Definition at line 60 of file c_tree.hpp.