![]() |
Gaia-ECS v1.0.0
A simple and powerful entity component system
|
Bitset iterator. More...
#include <bitset_iterator.h>
Public Types | |
| using | value_type = uint32_t |
| Bit-index value type. | |
| using | size_type = typename TBitset::size_type |
| Backing-word type used by the parent bit set. | |
Public Member Functions | |
| bitset_const_iterator (const TBitset &bitset, value_type pos, bool fwd) | |
| GAIA_NODISCARD value_type | operator* () const |
| Returns the current bit index. | |
| GAIA_NODISCARD value_type | operator-> () const |
| Returns the current bit index for arrow-style access. | |
| GAIA_NODISCARD value_type | index () const |
| Returns the current bit index. | |
| bitset_const_iterator & | operator++ () |
| Advances to the next matching bit in the iterator's direction. | |
| GAIA_NODISCARD bitset_const_iterator | operator++ (int) |
| Advances to the next matching bit in the iterator's direction. | |
| GAIA_NODISCARD bool | operator== (const bitset_const_iterator &other) const |
| Compares iterator positions. | |
| GAIA_NODISCARD bool | operator!= (const bitset_const_iterator &other) const |
| Compares iterator positions. | |
Bitset iterator.
| TBitset | Iterator's bitset parent |
| IsFwd | If true the iterator moves forward. Backwards iterations otherwise. |
| IsInverse | If true, all values are inverse |
|
inline |
| bitset | Parent bit set. |
| pos | Initial bit position or boundary. |
| fwd | True to search toward increasing indices. False to search toward decreasing indices. |
|
inline |
Returns the current bit index.
|
inline |
Compares iterator positions.
| other | Iterator to compare with. |
|
inline |
Returns the current bit index.
|
inline |
Advances to the next matching bit in the iterator's direction.
|
inline |
Advances to the next matching bit in the iterator's direction.
|
inline |
Returns the current bit index for arrow-style access.
|
inline |
Compares iterator positions.
| other | Iterator to compare with. |