![]() |
Gaia-ECS v1.0.0
A simple and powerful entity component system
|
Read-only iterator over elements in paged storage. More...
#include <paged_storage.h>
Public Types | |
| using | value_type = T |
| Element type. | |
| using | pointer = const T * |
| Pointer to a read-only element. | |
| using | reference = const T & |
| Reference to a read-only 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 = const_page_iterator |
| Iterator type. | |
| using | iterator_category = core::bidirectional_iterator_tag |
| Iterator category tag. | |
Public Member Functions | |
| const_page_iterator (const page_type *pPage) | |
| Constructs an end iterator at a page boundary. | |
| const_page_iterator (const page_type *pPage, const page_type *pPageLast) | |
| Constructs a read-only 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. | |
Read-only 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 a read-only 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. |