![]() |
Gaia-ECS v1.0.0
A simple and powerful entity component system
|
Forward iterator over an intrusive fwd_llist. More...
#include <fwd_llist.h>
Public Types | |
| using | iterator_category = core::forward_iterator_tag |
| Iterator category tag. | |
| using | value_type = T |
| Node value type. | |
| using | pointer = T * |
| Pointer to a node. | |
| using | reference = T & |
| Reference to a node. | |
| using | difference_type = uint32_t |
| Type used for iterator distances. | |
| using | size_type = uint32_t |
| Type used for sizes. | |
| using | iterator = fwd_llist_iterator |
| Iterator type. | |
Public Member Functions | |
| fwd_llist_iterator (T *pNode) | |
| Constructs an iterator at a node. | |
| reference | operator* () const |
| Dereferences the current node. | |
| pointer | operator-> () const |
| Accesses the current node. | |
| iterator & | operator++ () |
| Advances to the next linked node. | |
| iterator | operator++ (int) |
| Advances to the next linked node. | |
| GAIA_NODISCARD bool | operator== (const iterator &other) const |
| Compares iterator positions. | |
| GAIA_NODISCARD bool | operator!= (const iterator &other) const |
| Compares iterator positions. | |
Forward iterator over an intrusive fwd_llist.
| T | Node type, optionally const-qualified. |
|
inlineexplicit |
Constructs an iterator at a node.
| pNode | Current node, or nullptr for the end sentinel. |
|
inline |
Compares iterator positions.
| other | Iterator to compare with. |
|
inline |
Dereferences the current node.
|
inline |
Advances to the next linked node.
Advances to the next linked node.
|
inline |
Accesses the current node.
|
inline |
Compares iterator positions.
| other | Iterator to compare with. |