![]() |
Gaia-ECS v0.9.3
A simple and powerful entity component system
|
Forward list container. No memory allocation is performed because the list is stored directly inside allocated nodes. Inserts: O(1) Removals: O(1) Iteration: O(N) More...
#include <fwd_llist.h>
Public Member Functions | |
| void | clear () |
| Clears the list. | |
| void | link (T *pNode) |
| Links the node in the list. | |
| void | unlink (T *pNode) |
| Unlinks the node from the list. | |
| GAIA_NODISCARD bool | has (T *pNode) const |
| Checks if the node. | |
| GAIA_NODISCARD bool | empty () const |
| Returns true if the list is empty. False otherwise. | |
| GAIA_NODISCARD uint32_t | size () const |
| Returns the number of nodes linked in the list. | |
| fwd_llist_iterator< T > | begin () |
| fwd_llist_iterator< const T > | begin () const |
| fwd_llist_iterator< const T > | cbegin () const |
| fwd_llist_iterator< T > | end () |
| fwd_llist_iterator< const T > | end () const |
| fwd_llist_iterator< const T > | cend () const |
Public Attributes | |
| uint32_t | count = 0 |
| T * | first = nullptr |
Forward list container. No memory allocation is performed because the list is stored directly inside allocated nodes. Inserts: O(1) Removals: O(1) Iteration: O(N)
|
inline |
Checks if the node.
| pNode | is linked in the list. |