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

#include <game/cLib/c_line.hpp>

Inheritance diagram for cLineMg_c:
[legend]

Description

A doubly-linked list container. See cLineNd_c.

Definition at line 23 of file c_line.hpp.

Public Member Functions

 cLineMg_c ()
 Constructs a new list container.
bool insertLineNode (cLineNd_c *node, cLineNd_c *prevNode)
 Inserts a node after the given previous node.
bool removeLineNode (cLineNd_c *node)
 Removes a node from the list.
bool addLastLineNode (cLineNd_c *node)
 Adds a node to the end of the list.
bool addTopLineNode (cLineNd_c *node)
 Adds a node to the beginning of the list.
cLineNd_cgetFirst () const
cLineNd_cgetLast () const

Protected Attributes

cLineNd_cmpFirst
 The first node in the list.
cLineNd_cmpLast
 The last node in the list.

Constructor & Destructor Documentation

◆ cLineMg_c()

cLineMg_c::cLineMg_c ( )
inline

Constructs a new list container.

Definition at line 26 of file c_line.hpp.

Member Function Documentation

◆ insertLineNode()

bool cLineMg_c::insertLineNode ( cLineNd_c * node,
cLineNd_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_line.cpp.

◆ removeLineNode()

bool cLineMg_c::removeLineNode ( cLineNd_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_line.cpp.

◆ addLastLineNode()

bool cLineMg_c::addLastLineNode ( cLineNd_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_line.cpp.

◆ addTopLineNode()

bool cLineMg_c::addTopLineNode ( cLineNd_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_line.cpp.

◆ getFirst()

cLineNd_c * cLineMg_c::getFirst ( ) const
inline

Definition at line 61 of file c_line.hpp.

◆ getLast()

cLineNd_c * cLineMg_c::getLast ( ) const
inline

Definition at line 62 of file c_line.hpp.

Member Data Documentation

◆ mpFirst

cLineNd_c* cLineMg_c::mpFirst
protected

The first node in the list.

Definition at line 65 of file c_line.hpp.

◆ mpLast

cLineNd_c* cLineMg_c::mpLast
protected

The last node in the list.

Definition at line 66 of file c_line.hpp.