NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
cTreeMg_c Class Reference

#include <game/cLib/c_tree.hpp>

Inheritance diagram for cTreeMg_c:
[legend]

Description

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_cmpRootNode
 The root node of the tree.
 

Constructor & Destructor Documentation

◆ cTreeMg_c()

cTreeMg_c::cTreeMg_c ( )
inline

Constructs a new tree container.

Definition at line 40 of file c_tree.hpp.

Member Function Documentation

◆ addTreeNode()

bool cTreeMg_c::addTreeNode ( cTreeNd_c * node,
cTreeNd_c * parent )

Adds a node to the tree, either to the root node or to a specified parent node.

Parameters
nodeThe node to add.
parentThe parent node to attach it to, or nullptr to attach it to the tree root.
Returns
If the operation was successful.

Definition at line 15 of file c_tree.cpp.

◆ removeTreeNode()

bool cTreeMg_c::removeTreeNode ( cTreeNd_c * node)

Removes a node from the tree.

Parameters
nodeThe node to remove.
Returns
If the operation was successful.

Definition at line 57 of file c_tree.cpp.

Member Data Documentation

◆ mpRootNode

cTreeNd_c* cTreeMg_c::mpRootNode
protected

The root node of the tree.

Definition at line 60 of file c_tree.hpp.