5 #include <libutl/BitArray.h> 6 #include <libutl/String.h> 7 #include <libutl/Uint.h> 56 _bitArray->set(_idx, val);
63 _bitArray->set(_idx, val);
70 _bitArray->set(_idx, val ? 1 : 0);
77 _bitArray->set(_idx, ref.
get());
85 return _bitArray->
get(_idx);
91 return (
uint_t)_bitArray->get(_idx);
97 return _bitArray->get(_idx);
101 operator bool()
const 103 return (_bitArray->get(_idx) != 0);
123 return (
get() < rhs);
128 return (
get() <= rhs);
133 return (
get() > rhs);
138 return (
get() >= rhs);
143 return (
get() == rhs);
148 return (
get() != rhs);
185 return (
get() < rhs.
get());
190 return (
get() <= rhs.
get());
195 return (
get() > rhs.
get());
200 return (
get() >= rhs.
get());
205 return (
get() == rhs.
get());
210 return (
get() != rhs.
get());
#define UTL_CLASS_DEFID
Default init() and deInit() (which are merely place-holders).
String toString(const FwdIt &begin, const FwdIt &end, const String &sep, bool key=false)
Obtain a string representation of a sequence (via Object::toString()).
Reference to a value stored in a BitArray.
bool operator<(const BitArrayElem &rhs) const
Less-than operator.
bool operator>=(uint64_t rhs) const
Greater-than-or-equal-to operator.
uint64_t get() const
Get value.
bool operator<=(const BitArrayElem &rhs) const
Less-than-or-equal-to operator.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
bool operator==(int64_t rhs) const
Equal-to operator.
bool operator<=(uint64_t rhs) const
Less-than-or-equal-to operator.
long int64_t
Signed 64-bit integer.
bool operator!=(uint64_t rhs) const
Unequal-to operator.
bool operator==(bool rhs) const
Equal-to operator.
bool operator>=(int64_t rhs) const
Greater-than-or-equal-to operator.
BitArrayElem & operator=(uint_t val)
Assignment from uint_t.
bool operator!=(const BitArrayElem &rhs) const
Unequal-to operator.
void copy(T *dest, const T *src, size_t len)
Copy one array of objects to another.
unsigned long uint64_t
Unsigned 64-bit integer.
bool operator>(uint64_t rhs) const
Greater-than operator.
bool operator<(int64_t rhs) const
Less-than operator.
BitArrayElem & operator=(uint64_t val)
Assignment from uint64_t.
bool operator!=(bool rhs) const
Unequal-to operator.
BitArrayElem & operator=(BitArrayElem &ref)
Assignment from non-const BitArrayElem.
bool operator!=(int64_t rhs) const
Unequal-to operator.
unsigned int uint_t
Unsigned integer.
bool operator>(int64_t rhs) const
Greater-than operator.
#define UTL_CLASS_NO_SERIALIZE
Declare that a class cannot do serialize().
#define UTL_CLASS_NO_COMPARE
Declare that a class cannot do compare().
BitArrayElem(BitArray *bitArray, uint64_t idx)
Constructor.
bool operator<(uint64_t rhs) const
Less-than operator.
bool operator==(const BitArrayElem &rhs) const
Equal-to operator.
BitArrayElem & operator=(bool val)
Assignment from bool.
bool operator==(uint64_t rhs) const
Equal-to operator.
bool operator>(const BitArrayElem &rhs) const
Greater-than operator.
Root of UTL++ class hierarchy.
bool operator>=(const BitArrayElem &rhs) const
Greater-than-or-equal-to operator.
bool operator<=(int64_t rhs) const
Less-than-or-equal-to operator.
#define ASSERTD
Do an assertion in DEBUG mode only.