#include <BitSet.hpp>
Public Member Functions | |
BitSet () | |
BitSet & | set () |
BitSet & | set (size_t pos, bool val=true) |
BitSet & | reset () |
BitSet & | reset (size_t pos) |
BitSet & | flip () |
BitSet & | flip (size_t pos) |
bool | test (size_t pos) const |
bool | any () const |
bool | none () const |
bool | all () const |
Private Member Functions | |
size_t | count () const |
Private Attributes | |
uint32_t | bits |
This is a replacement for the std::bitset class that is more portable. For classes that are saved via rexxc compilation that use FlagSets, the different compiler implementations of the bitset class so not interoperate well. This ensures we have a single data format for saved bitsets across all of the interpreters.
This is also simpler than the std bitset, limited to just 32 bits in the set and only implementing the operations required by the interpreter.
Definition at line 59 of file BitSet.hpp.
Definition at line 64 of file BitSet.hpp.
|
inline |
Definition at line 144 of file BitSet.hpp.
References BitSet< TMaxBits >::count().
|
inline |
Definition at line 134 of file BitSet.hpp.
References BitSet< TMaxBits >::bits.
|
inlineprivate |
Definition at line 151 of file BitSet.hpp.
References BitSet< TMaxBits >::test().
Referenced by BitSet< TMaxBits >::all().
Definition at line 101 of file BitSet.hpp.
Definition at line 111 of file BitSet.hpp.
References BitSet< TMaxBits >::bits.
|
inline |
Definition at line 139 of file BitSet.hpp.
References BitSet< TMaxBits >::bits.
Definition at line 90 of file BitSet.hpp.
References BitSet< TMaxBits >::bits.
Definition at line 96 of file BitSet.hpp.
References BitSet< TMaxBits >::set().
Definition at line 66 of file BitSet.hpp.
References BitSet< TMaxBits >::bits.
Referenced by BitSet< TMaxBits >::reset().
Definition at line 72 of file BitSet.hpp.
References BitSet< TMaxBits >::bits.
|
inline |
Definition at line 121 of file BitSet.hpp.
References BitSet< TMaxBits >::bits.
Referenced by BitSet< TMaxBits >::count().
Definition at line 166 of file BitSet.hpp.
Referenced by BitSet< TMaxBits >::any(), BitSet< TMaxBits >::flip(), BitSet< TMaxBits >::none(), BitSet< TMaxBits >::reset(), BitSet< TMaxBits >::set(), and BitSet< TMaxBits >::test().