|
|
| dbitset (uint32_t reserveBits) |
| |
|
| dbitset (const dbitset &other) |
| |
|
dbitset & | operator= (const dbitset &other) |
| |
|
| dbitset (dbitset &&other) noexcept |
| |
|
dbitset & | operator= (dbitset &&other) noexcept |
| |
|
void | reserve (uint32_t bitsWanted) |
| |
|
void | resize (uint32_t bitsWanted) |
| |
|
iter | begin () const |
| |
|
iter | end () const |
| |
|
iter_rev | rbegin () const |
| |
|
iter_rev | rend () const |
| |
|
iter_inv | ibegin () const |
| |
|
iter_inv | iend () const |
| |
|
iter_rev_inv | ribegin () const |
| |
|
iter_rev_inv | riend () const |
| |
|
GAIA_NODISCARD bool | operator[] (uint32_t pos) const |
| |
|
GAIA_NODISCARD bool | operator== (const dbitset &other) const |
| |
|
GAIA_NODISCARD bool | operator!= (const dbitset &other) const |
| |
|
void | set () |
| | Sets all bits.
|
| |
| void | set (uint32_t pos, bool value=true) |
| | Sets the bit at the postion.
|
| |
|
void | flip () |
| | Flips all bits.
|
| |
| void | flip (uint32_t pos) |
| | Flips the bit at the postion.
|
| |
| dbitset & | flip (uint32_t bitFrom, uint32_t bitTo) |
| | Flips all bits from.
|
| |
|
void | reset () |
| | Unsets all bits.
|
| |
| void | reset (uint32_t pos) |
| | Unsets the bit at the postion.
|
| |
| GAIA_NODISCARD bool | test (uint32_t pos) const |
| | Returns the value of the bit at the position.
|
| |
|
GAIA_NODISCARD bool | all () const |
| | Checks if all bits are set.
|
| |
|
GAIA_NODISCARD bool | any () const |
| | Checks if any bit is set.
|
| |
|
GAIA_NODISCARD bool | none () const |
| | Checks if all bits are reset.
|
| |
|
GAIA_NODISCARD uint32_t | count () const |
| | Returns the number of set bits.
|
| |
|
GAIA_NODISCARD constexpr uint32_t | size () const |
| | Returns the number of bits the dbitset holds.
|
| |
|
GAIA_NODISCARD constexpr uint32_t | capacity () const |
| | Returns the number of bits the dbitset can hold.
|
| |
|
|
friend | iter |
| |
|
friend | iter_inv |
| |
|
friend | iter_rev |
| |
|
friend | iter_rev_inv |
| |
◆ flip() [1/2]
template<typename Allocator = mem::DefaultAllocatorAdaptor>
Flips all bits from.
- Parameters
-
| bitFrom | to |
| bitTo | (including) |
◆ flip() [2/2]
template<typename Allocator = mem::DefaultAllocatorAdaptor>
Flips the bit at the postion.
- Parameters
-
◆ reset()
template<typename Allocator = mem::DefaultAllocatorAdaptor>
Unsets the bit at the postion.
- Parameters
-
◆ set()
template<typename Allocator = mem::DefaultAllocatorAdaptor>
Sets the bit at the postion.
- Parameters
-
◆ test()
template<typename Allocator = mem::DefaultAllocatorAdaptor>
Returns the value of the bit at the position.
- Parameters
-
The documentation for this class was generated from the following file:
- /home/runner/work/gaia-ecs/gaia-ecs/include/gaia/cnt/dbitset.h