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

#include <dol/framework/f_tree_mg.hpp>

Inheritance diagram for fTrMgBa_c:
[legend]

Description

A base tree, made of fTrNdBa_c nodes.

Note
The class name stands for "Tree Manager (with) Base".

Definition at line 11 of file f_tree_mg.hpp.

Public Member Functions

const fTrNdBa_csearchNodeByProfName (ProfileName profName, const fTrNdBa_c *parent) const
 Searches for a base with a given profile name, optionally under a given parent.
 
const fTrNdBa_csearchNodeByGroupType (u8 groupType, const fTrNdBa_c *parent) const
 Searches for a base with a given group type, optionally under a given parent.
 
- Public Member Functions inherited from cTreeMg_c
 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.
 

Additional Inherited Members

- Protected Attributes inherited from cTreeMg_c
cTreeNd_cmpRootNode
 The root node of the tree.
 

Member Function Documentation

◆ searchNodeByProfName()

const fTrNdBa_c * fTrMgBa_c::searchNodeByProfName ( ProfileName  profName,
const fTrNdBa_c parent 
) const

Searches for a base with a given profile name, optionally under a given parent.

Parameters
profNameThe profile name.
parentThe parent node to start searching from, or nullptr to use the tree's root node.
Returns
The node of the first base matching this criteria, or nullptr if none was found.

Definition at line 24 of file f_tree.cpp.

◆ searchNodeByGroupType()

const fTrNdBa_c * fTrMgBa_c::searchNodeByGroupType ( u8  groupType,
const fTrNdBa_c parent 
) const

Searches for a base with a given group type, optionally under a given parent.

Parameters
groupTypeThe group type. Value is a fBase_c::GROUP_TYPE_e.
parentThe parent node to start searching from, or nullptr to use the tree's root node.
Returns
The node of the first base matching this criteria, or nullptr if none was found.

Definition at line 41 of file f_tree.cpp.