|
CeresEngine 0.2.0
A game development framework
|
Minimal linked list without node allocation. More...
Public Member Functions | |
| LinkedList () noexcept=default | |
Creates a new LinkedList. | |
| bool | empty () const noexcept |
| Checks if the list is empty. | |
| void | push (NodeType *node) noexcept |
| Pushes a new node into the list. | |
| NodeType * | pop () noexcept |
| Pops a node from the list. | |
Private Attributes | |
| NodeType * | head = nullptr |
| The head node. | |
| NodeType * | tail = nullptr |
| The tail node. | |
Minimal linked list without node allocation.
| NodeType | the type of nodes in the list |
|
defaultnoexcept |
Creates a new LinkedList.
|
inlinenoexcept |
Checks if the list is empty.
true if the list is empty
|
inlinenoexcept |
Pops a node from the list.
nullptr if there are no nodes.
|
inlinenoexcept |
Pushes a new node into the list.
| node | The node to be pushed into the list |
|
private |
The head node.
|
private |
The tail node.