ConstIterator Struct
Const forward iterator for traversing the sparse set. More...
Declaration
Public Member Typedefs Index
| using | DataIt = typename std::vector< T >::const_iterator |
| using | IdIt = typename std::vector< EntityId >::const_iterator |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = T |
| using | difference_type = std::ptrdiff_t |
| using | pointer = const T * |
| using | reference = const T & |
Public Constructors Index
| ConstIterator ()=default | |
| ConstIterator (DataIt dataIt, IdIt idIt) | |
Public Operators Index
| reference | operator* () const |
| pointer | operator-> () const |
| bool | operator== (const ConstIterator &other) const |
| bool | operator!= (const ConstIterator &other) const |
| ConstIterator | operator++ (int) |
| ConstIterator & | operator++ () |
Public Member Functions Index
| EntityId | entityId () const |
Public Member Attributes Index
| DataIt | dataIt_ |
|
Const iterator into the dense data storage. More... | |
| IdIt | idIt_ |
|
Const iterator into the dense-to-sparse ID mapping. More... | |
Description
Const forward iterator for traversing the sparse set.
Provides read-only access to elements and their EntityIds.
Definition at line 396 of file SparseSet.ixx.
Public Member Typedefs
DataIt
|
Definition at line 397 of file SparseSet.ixx.
difference_type
|
Definition at line 412 of file SparseSet.ixx.
IdIt
|
Definition at line 398 of file SparseSet.ixx.
iterator_category
|
Definition at line 410 of file SparseSet.ixx.
pointer
|
Definition at line 413 of file SparseSet.ixx.
reference
|
Definition at line 414 of file SparseSet.ixx.
value_type
|
Definition at line 411 of file SparseSet.ixx.
Public Constructors
ConstIterator()
| default |
ConstIterator()
Definition at line 418 of file SparseSet.ixx.
References helios::ecs::SparseSet< T >::ConstIterator::dataIt_ and helios::ecs::SparseSet< T >::ConstIterator::idIt_.
Public Operators
operator->()
| inline |
Definition at line 421 of file SparseSet.ixx.
Reference helios::ecs::SparseSet< T >::ConstIterator::dataIt_.
operator!=()
| inline nodiscard |
Definition at line 431 of file SparseSet.ixx.
References helios::ecs::SparseSet< T >::ConstIterator::ConstIterator and helios::ecs::SparseSet< T >::ConstIterator::dataIt_.
operator*()
| inline |
Definition at line 420 of file SparseSet.ixx.
Reference helios::ecs::SparseSet< T >::ConstIterator::dataIt_.
operator++()
| inline |
Definition at line 433 of file SparseSet.ixx.
Reference helios::ecs::SparseSet< T >::ConstIterator::ConstIterator.
operator++()
| inline |
Definition at line 439 of file SparseSet.ixx.
References helios::ecs::SparseSet< T >::ConstIterator::ConstIterator, helios::ecs::SparseSet< T >::ConstIterator::dataIt_ and helios::ecs::SparseSet< T >::ConstIterator::idIt_.
operator==()
| inline nodiscard |
Definition at line 430 of file SparseSet.ixx.
References helios::ecs::SparseSet< T >::ConstIterator::ConstIterator and helios::ecs::SparseSet< T >::ConstIterator::dataIt_.
Public Member Functions
entityId()
| inline nodiscard |
Returns the EntityId for the current element.
- Returns
The EntityId associated with the current element.
Definition at line 428 of file SparseSet.ixx.
Reference helios::ecs::SparseSet< T >::ConstIterator::idIt_.
Public Member Attributes
dataIt_
|
Const iterator into the dense data storage.
Definition at line 403 of file SparseSet.ixx.
Referenced by helios::ecs::SparseSet< T >::ConstIterator::ConstIterator, helios::ecs::SparseSet< T >::ConstIterator::operator!=, helios::ecs::SparseSet< T >::ConstIterator::operator*, helios::ecs::SparseSet< T >::ConstIterator::operator++, helios::ecs::SparseSet< T >::ConstIterator::operator-> and helios::ecs::SparseSet< T >::ConstIterator::operator==.
idIt_
|
Const iterator into the dense-to-sparse ID mapping.
Definition at line 408 of file SparseSet.ixx.
Referenced by helios::ecs::SparseSet< T >::ConstIterator::ConstIterator, helios::ecs::SparseSet< T >::ConstIterator::entityId and helios::ecs::SparseSet< T >::ConstIterator::operator++.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.