1#include <game/cLib/c_list.hpp>
7 if (prevNode ==
nullptr)
10 if (node !=
nullptr) {
17 if (node->
mpNext !=
nullptr) {
31 if (node !=
nullptr) {
35 if (node->
mpPrev !=
nullptr) {
43 if (node->
mpNext !=
nullptr) {
45 }
else if (node ==
mpLast) {
61 if (node !=
nullptr) {
81 if (node !=
nullptr) {
bool append(cListNd_c *node)
Adds a node to the end of the list.
bool remove(cListNd_c *node)
Removes a node from the list.
cListNd_c * mpFirst
The first node in the list.
cListNd_c * mpLast
The last node in the list.
bool prepend(cListNd_c *node)
Adds a node to the beginning of the list.
bool insertAfter(cListNd_c *node, cListNd_c *prevNode)
Inserts a node after the given previous node.
A doubly-linked list node. See cListMg_c.
cListNd_c * mpNext
The next node.
cListNd_c * mpPrev
The previous node.