|
NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/cLib/c_line.hpp>
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_c * | getFirst () const |
| cLineNd_c * | getLast () const |
Protected Attributes | |
| cLineNd_c * | mpFirst |
| The first node in the list. | |
| cLineNd_c * | mpLast |
| The last node in the list. | |
|
inline |
Constructs a new list container.
Definition at line 26 of file c_line.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_line.cpp.
| bool cLineMg_c::removeLineNode | ( | cLineNd_c * | node | ) |
Removes a node from the list.
| node | The node to remove. |
Definition at line 30 of file c_line.cpp.
| bool cLineMg_c::addLastLineNode | ( | cLineNd_c * | node | ) |
Adds a node to the end of the list.
| node | The node to append. |
Definition at line 60 of file c_line.cpp.
| bool cLineMg_c::addTopLineNode | ( | cLineNd_c * | node | ) |
Adds a node to the beginning of the list.
| node | The node to prepend. |
Definition at line 80 of file c_line.cpp.
|
inline |
Definition at line 61 of file c_line.hpp.
|
inline |
Definition at line 62 of file c_line.hpp.
|
protected |
The first node in the list.
Definition at line 65 of file c_line.hpp.
|
protected |
The last node in the list.
Definition at line 66 of file c_line.hpp.