NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/cLib/c_list.hpp>
A doubly-linked list container. See cListNd_c.
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_c * | getFirst () const |
cListNd_c * | getLast () const |
Protected Attributes | |
cListNd_c * | mpFirst |
The first node in the list. | |
cListNd_c * | mpLast |
The last node in the list. | |
|
inline |
Constructs a new list container.
Definition at line 28 of file c_list.hpp.
Inserts a node after the given previous node.
node | The node to insert. |
prevNode | The node to insert it after, or nullptr to insert it at the beginning. |
Definition at line 4 of file c_list.cpp.
bool cListMg_c::remove | ( | cListNd_c * | node | ) |
Removes a node from the list.
node | The node to remove. |
Definition at line 30 of file c_list.cpp.
bool cListMg_c::append | ( | cListNd_c * | node | ) |
Adds a node to the end of the list.
node | The node to append. |
Definition at line 60 of file c_list.cpp.
bool cListMg_c::prepend | ( | cListNd_c * | node | ) |
Adds a node to the beginning of the list.
node | The node to prepend. |
Definition at line 80 of file c_list.cpp.
|
inline |
Definition at line 63 of file c_list.hpp.
|
inline |
Definition at line 64 of file c_list.hpp.
|
protected |
The first node in the list.
Definition at line 67 of file c_list.hpp.
|
protected |
The last node in the list.
Definition at line 68 of file c_list.hpp.