![]() |
Gaia-ECS v1.0.0
A simple and powerful entity component system
|
Iterator over elements in paged storage. More...
#include <paged_storage.h>
Public Types | |
| using | value_type = T |
| Element type. | |
| using | pointer = T * |
| Pointer to an element. | |
| using | reference = T & |
| Reference to an element. | |
| using | difference_type = detail::difference_type |
| Type used for iterator distances. | |
| using | size_type = detail::size_type |
| Type used for sizes and indices. | |
| using | iterator = page_iterator |
| Iterator type. | |
| using | iterator_category = core::bidirectional_iterator_tag |
| Iterator category tag. | |
Public Member Functions | |
| page_iterator (page_type *pPage) | |
| Constructs an end iterator at a page boundary. | |
| page_iterator (page_type *pPage, page_type *pPageLast) | |
| Constructs an iterator over a page range. | |
| reference | operator* () const |
| Accesses the current element. | |
| pointer | operator-> () const |
| Accesses the current element through a pointer. | |
| iterator & | operator++ () |
| Advances to the next element. | |
| iterator | operator++ (int) |
| Advances to the next element. | |
| GAIA_NODISCARD bool | operator== (const iterator &other) const |
| Checks whether two iterators have the same position. | |
| GAIA_NODISCARD bool | operator!= (const iterator &other) const |
| Checks whether two iterators have different positions. | |
Iterator over elements in paged storage.
| T | Element type. |
| Allocator | Page allocator type. |
| IsFwd | Whether iteration proceeds forward. |
|
inline |
Constructs an end iterator at a page boundary.
| pPage | Boundary page. |
|
inline |
Constructs an iterator over a page range.
| pPage | First page to inspect. |
| pPageLast | Page marking the range boundary. |
|
inline |
Checks whether two iterators have different positions.
| other | Iterator to compare with. |
|
inline |
Accesses the current element.
|
inline |
Advances to the next element.
|
inline |
Advances to the next element.
|
inline |
Accesses the current element through a pointer.
|
inline |
Checks whether two iterators have the same position.
| other | Iterator to compare with. |