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

#include <game/cLib/c_list.hpp>

Inheritance diagram for cListMg_c:
[legend]

Description

A doubly-linked list container. See cListNd_c.

Unofficial name.

Definition at line 25 of file c_list.hpp.

Public Member Functions

 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
 

Protected Attributes

cListNd_cmpFirst
 The first node in the list.
 
cListNd_cmpLast
 The last node in the list.
 

Constructor & Destructor Documentation

◆ cListMg_c()

cListMg_c::cListMg_c ( )
inline

Constructs a new list container.

Definition at line 28 of file c_list.hpp.

Member Function Documentation

◆ insertAfter()

bool cListMg_c::insertAfter ( cListNd_c * node,
cListNd_c * prevNode )

Inserts a node after the given previous node.

Parameters
nodeThe node to insert.
prevNodeThe node to insert it after, or nullptr to insert it at the beginning.
Returns
If the operation was successful.

Definition at line 4 of file c_list.cpp.

◆ remove()

bool cListMg_c::remove ( cListNd_c * node)

Removes a node from the list.

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

Definition at line 30 of file c_list.cpp.

◆ append()

bool cListMg_c::append ( cListNd_c * node)

Adds a node to the end of the list.

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

Definition at line 60 of file c_list.cpp.

◆ prepend()

bool cListMg_c::prepend ( cListNd_c * node)

Adds a node to the beginning of the list.

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

Definition at line 80 of file c_list.cpp.

◆ getFirst()

cListNd_c * cListMg_c::getFirst ( ) const
inline

Definition at line 63 of file c_list.hpp.

◆ getLast()

cListNd_c * cListMg_c::getLast ( ) const
inline

Definition at line 64 of file c_list.hpp.

Member Data Documentation

◆ mpFirst

cListNd_c* cListMg_c::mpFirst
protected

The first node in the list.

Definition at line 67 of file c_list.hpp.

◆ mpLast

cListNd_c* cListMg_c::mpLast
protected

The last node in the list.

Definition at line 68 of file c_list.hpp.