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

#include <game/framework/f_tree_mg_ptmf.hpp>

Inheritance diagram for fTrMgPTMF_c:
[legend]

Description

A base tree made of fTrNdBa_c nodes, with a reference to a process function.

Unofficial name.

Definition at line 11 of file f_tree_mg_ptmf.hpp.

Public Member Functions

 fTrMgPTMF_c (int(fBase_c::*procFunc)())
 Constructs a new tree.
 
bool walkPack ()
 Calls the process function on each base in the tree.
 
- Public Member Functions inherited from fTrMgBa_c
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.
 

Private Attributes

int(fBase_c::* mpProcFunc )()
 The process function for the tree.
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ fTrMgPTMF_c()

fTrMgPTMF_c::fTrMgPTMF_c ( int(fBase_c::* procFunc )())
inline

Constructs a new tree.

Parameters
procFuncThe process function, or nullptr .

Definition at line 16 of file f_tree_mg_ptmf.hpp.

Member Function Documentation

◆ walkPack()

bool fTrMgPTMF_c::walkPack ( )

Calls the process function on each base in the tree.

Returns
Always returns true.

Definition at line 7 of file f_tree.cpp.

Member Data Documentation

◆ mpProcFunc

int(fBase_c::* fTrMgPTMF_c::mpProcFunc) ()
private

The process function for the tree.

Definition at line 23 of file f_tree_mg_ptmf.hpp.