![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
Dynamic bitset class, with configurable block type. More...
#include <DynamicBitset.hpp>
Classes | |
| class | Bit |
| Bit class, coming from a bitset. More... | |
Public Types | |
| using | BlockType = BlockTypeT |
Public Member Functions | |
| String | toString () const |
| DynamicBitsetT () | |
| DynamicBitsetT (size_t size, bool value=false) | |
| DynamicBitsetT (MbString const &bits) | |
| DynamicBitsetT (char const *bits) | |
| DynamicBitsetT (char const *bits, size_t size) | |
| void | set (size_t bit, bool value=true) |
| bool | get (size_t bit) const |
| BlockTypeT | getBlock (size_t index) const |
| void | reset () |
| void | resize (size_t size, bool value) |
| size_t | getSize () const |
| size_t | getBlockCount () const |
| bool | none () const |
| bool | any () const |
| bool | all () const |
| Bit | operator[] (size_t index) |
| bool | operator[] (size_t index) const |
| DynamicBitsetT & | operator<<= (int value) |
| DynamicBitsetT & | operator>>= (int value) |
| DynamicBitsetT & | operator&= (DynamicBitsetT const &value) |
| DynamicBitsetT & | operator|= (DynamicBitsetT const &value) |
| DynamicBitsetT & | operator^= (DynamicBitsetT const &value) |
| DynamicBitsetT | operator~ () const |
Static Public Attributes | |
| static constexpr BlockTypeT | fullBitMask = std::numeric_limits< BlockTypeT >::max() |
| static constexpr size_t | bitsPerBlock = sizeof( BlockTypeT ) * 8u |
Dynamic bitset class, with configurable block type.
| using castor::DynamicBitsetT< BlockTypeT >::BlockType = BlockTypeT |
| castor::DynamicBitsetT< BlockTypeT >::DynamicBitsetT | ( | ) |
name Construction/Destruction.
|
explicit |
|
explicit |
|
explicit |
| castor::DynamicBitsetT< BlockTypeT >::DynamicBitsetT | ( | char const * | bits, |
| size_t | size ) |
| bool castor::DynamicBitsetT< BlockTypeT >::all | ( | ) | const |
| bool castor::DynamicBitsetT< BlockTypeT >::any | ( | ) | const |
| bool castor::DynamicBitsetT< BlockTypeT >::get | ( | size_t | bit | ) | const |
| BlockTypeT castor::DynamicBitsetT< BlockTypeT >::getBlock | ( | size_t | index | ) | const |
| size_t castor::DynamicBitsetT< BlockTypeT >::getBlockCount | ( | ) | const |
| size_t castor::DynamicBitsetT< BlockTypeT >::getSize | ( | ) | const |
| bool castor::DynamicBitsetT< BlockTypeT >::none | ( | ) | const |
| DynamicBitsetT & castor::DynamicBitsetT< BlockTypeT >::operator&= | ( | DynamicBitsetT< BlockTypeT > const & | value | ) |
| DynamicBitsetT & castor::DynamicBitsetT< BlockTypeT >::operator<<= | ( | int | value | ) |
name Bit operations.
| DynamicBitsetT & castor::DynamicBitsetT< BlockTypeT >::operator>>= | ( | int | value | ) |
| Bit castor::DynamicBitsetT< BlockTypeT >::operator[] | ( | size_t | index | ) |
name Array access.
| bool castor::DynamicBitsetT< BlockTypeT >::operator[] | ( | size_t | index | ) | const |
| DynamicBitsetT & castor::DynamicBitsetT< BlockTypeT >::operator^= | ( | DynamicBitsetT< BlockTypeT > const & | value | ) |
| DynamicBitsetT & castor::DynamicBitsetT< BlockTypeT >::operator|= | ( | DynamicBitsetT< BlockTypeT > const & | value | ) |
| DynamicBitsetT castor::DynamicBitsetT< BlockTypeT >::operator~ | ( | ) | const |
| void castor::DynamicBitsetT< BlockTypeT >::reset | ( | ) |
| void castor::DynamicBitsetT< BlockTypeT >::resize | ( | size_t | size, |
| bool | value ) |
| void castor::DynamicBitsetT< BlockTypeT >::set | ( | size_t | bit, |
| bool | value = true ) |
name Bitset functions.
| String castor::DynamicBitsetT< BlockTypeT >::toString | ( | ) | const |
|
staticconstexpr |
|
staticconstexpr |