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

#include <dol/framework/f_list_mg.hpp>

Inheritance diagram for fLiMgBa_c:
[legend]

Description

A base list, made of fLiNdBa_c nodes.

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

Definition at line 13 of file f_list_mg.hpp.

Public Member Functions

int countNodeByProfName (ProfileName profName) const
 Counts the number of bases using the given profile name.
 
const fLiNdBa_csearchNodeByID (fBaseID_e id) const
 Searches for a base with the given ID.
 
fLiNdBa_cgetFirst () const
 
fLiNdBa_cgetLast () const
 
- Public Member Functions inherited from cListMg_c
 cListMg_c ()
 Constructs a new list container.
 
bool insertAfter (cListNd_c *node, cListNd_c *prevNode)
 Inserts a node after the given previous node.
 
bool remove (cListNd_c *node)
 Removes a node from the list.
 
bool append (cListNd_c *node)
 Adds a node to the end of the list.
 
bool prepend (cListNd_c *node)
 Adds a node to the beginning of the list.
 
cListNd_cgetFirst () const
 
cListNd_cgetLast () const
 

Additional Inherited Members

- Protected Attributes inherited from cListMg_c
cListNd_cmpFirst
 The first node in the list.
 
cListNd_cmpLast
 The last node in the list.
 

Member Function Documentation

◆ countNodeByProfName()

int fLiMgBa_c::countNodeByProfName ( ProfileName  profName) const

Counts the number of bases using the given profile name.

Parameters
profNameThe profile name.
Returns
How many bases were found.

Definition at line 57 of file f_list.cpp.

◆ searchNodeByID()

const fLiNdBa_c * fLiMgBa_c::searchNodeByID ( fBaseID_e  id) const

Searches for a base with the given ID.

Parameters
idThe ID to search for.
Returns
The node belonging to such base, or nullptr.

Definition at line 48 of file f_list.cpp.

◆ getFirst()

fLiNdBa_c * fLiMgBa_c::getFirst ( ) const
inline

Definition at line 32 of file f_list_mg.hpp.

◆ getLast()

fLiNdBa_c * fLiMgBa_c::getLast ( ) const
inline

Definition at line 36 of file f_list_mg.hpp.