|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_UTIL_WAHVECTOR_H_
22 #define ELM_UTIL_WAHVECTOR_H_
24 #include <elm/types.h>
33 inline WAHVector(
void): rem(0), _size(0), words(0) { }
38 bool bit(
int index)
const;
51 void clear(
int index);
62 inline void applyNot(
void) { doNot(*
this, *
this); }
71 inline operator bool(
void)
const {
return _v->
bit(_i); }
118 #endif // ELM_UTIL_WAHVECTOR_H_
bool isFull(void) const
Definition: util_WAHVector.cpp:288
typename type_info< T >::out_t out
Definition: type_info.h:284
WAHVector operator*(const WAHVector &vec) const
Definition: WAHVector.h:82
bool isEmpty(void) const
Definition: util_WAHVector.cpp:272
Definition: WAHVector.h:29
Bit & operator=(const Bit &b)
Definition: WAHVector.h:69
AutoString & operator<<(CString str, const T &value)
Definition: AutoString.h:75
~WAHVector(void)
Definition: WAHVector.h:36
bool includesStrictly(const WAHVector &vec) const
Definition: util_WAHVector.cpp:350
WAHVector & operator+=(const WAHVector &vec)
Definition: WAHVector.h:87
WAHVector & operator&=(const WAHVector &vec)
Definition: WAHVector.h:86
void applyOr(const WAHVector &v)
Definition: WAHVector.h:58
bool operator[](int i) const
Definition: WAHVector.h:65
Bit(WAHVector &v, int i)
Definition: WAHVector.h:68
Definition: WAHVector.h:66
bool operator!=(const WAHVector &v)
Definition: WAHVector.h:91
WAHVector::word_t word_t
Definition: util_WAHVector.cpp:29
Bit operator[](int i)
Definition: WAHVector.h:76
void applyReset(const WAHVector &v)
Definition: WAHVector.h:60
int countBits(void) const
Definition: WAHVector.h:45
int countOnes(void) const
Definition: util_WAHVector.cpp:374
bool equals(const WAHVector &vec) const
Definition: util_WAHVector.cpp:304
WAHVector operator~(void) const
Definition: WAHVector.h:78
WAHVector & operator*=(const WAHVector &vec)
Definition: WAHVector.h:88
void clear(void)
Definition: util_WAHVector.cpp:513
void copy(const WAHVector &v)
Definition: util_WAHVector.cpp:530
WAHVector makeOr(const WAHVector &v) const
Definition: WAHVector.h:59
bool bit(int index) const
Definition: util_WAHVector.cpp:258
WAHVector & operator-=(const WAHVector &vec)
Definition: WAHVector.h:89
WAHVector operator+(const WAHVector &vec) const
Definition: WAHVector.h:81
WAHVector & operator|=(const WAHVector &vec)
Definition: WAHVector.h:85
bool operator<(const WAHVector &vec) const
Definition: WAHVector.h:92
bool operator==(const WAHVector &v)
Definition: WAHVector.h:90
WAHVector makeReset(const WAHVector &v) const
Definition: WAHVector.h:61
void applyAnd(const WAHVector &v)
Definition: WAHVector.h:56
bool operator>(const WAHVector &vec) const
Definition: WAHVector.h:94
bool includes(const WAHVector &vec) const
Definition: util_WAHVector.cpp:319
int size(void) const
Definition: util_WAHVector.cpp:359
unsigned int uint32
Definition: arch.h:31
void __dump(io::Output &out) const
Definition: util_WAHVector.cpp:690
void applyNot(void)
Definition: WAHVector.h:62
WAHVector makeNot(void) const
Definition: WAHVector.h:63
Bit & operator=(bool b)
Definition: WAHVector.h:70
int countZeroes(void) const
Definition: WAHVector.h:47
void set(void)
Definition: util_WAHVector.cpp:521
int __size(void) const
Definition: WAHVector.h:100
WAHVector & operator=(const WAHVector &vec)
Definition: WAHVector.h:84
bool operator<=(const WAHVector &vec) const
Definition: WAHVector.h:93
t::uint32 word_t
Definition: WAHVector.h:31
WAHVector(void)
Definition: WAHVector.h:33
WAHVector operator&(const WAHVector &vec) const
Definition: WAHVector.h:80
bool operator>=(const WAHVector &vec) const
Definition: WAHVector.h:95
WAHVector operator|(const WAHVector &vec) const
Definition: WAHVector.h:79
WAHVector operator-(const WAHVector &vec) const
Definition: WAHVector.h:83
WAHVector makeAnd(const WAHVector &v) const
Definition: WAHVector.h:57
void set(int index, bool value)
Definition: WAHVector.h:49