|
| | Iterator (const std::vector< Entity > *entities, size_t index, const std::array< SparseSetBase *, sizeof...(Components)> *pools) |
| | Construct a new Iterator object.
|
| Entity | operator* () const |
| | Dereference the iterator to access the current element.
|
| Iterator & | operator++ () |
| | Advances the Iterator to the next element, skipping indices that represent Entities not in every pool.
|
| bool | operator!= (const Iterator &other) const |
| | Checks whether two iterators point to different positions.
|
◆ Iterator()
template<typename... Components>
Construct a new Iterator object.
- Parameters
-
| entities | the smallest pool of entitites in the Survey |
| index | where this specific Iterator points to at construction |
| pools | the pools in the Survey |
◆ operator!=()
template<typename... Components>
Checks whether two iterators point to different positions.
- Parameters
-
- Returns
- true if the Iterators refer to different positions.
-
false if the Iterators refer to the same position.
◆ operator*()
template<typename... Components>
Dereference the iterator to access the current element.
- Returns
- The Entity that is at the current index
◆ operator++()
template<typename... Components>
Advances the Iterator to the next element, skipping indices that represent Entities not in every pool.
- Returns
- Reference to the Iterator after going to the next element.
The documentation for this class was generated from the following file: