27 |
|
class TBitVector : public bit_vector |
28 |
|
{ |
29 |
|
public: |
30 |
< |
TBitVector(); |
31 |
< |
TBitVector(int size); |
32 |
< |
~TBitVector(); |
33 |
< |
|
34 |
< |
void Resize(); |
30 |
> |
void Resize(int newSize); |
31 |
|
bool IsEmpty(); |
32 |
< |
|
32 |
> |
int Count() { return this->size();} |
33 |
|
void SetBitOn(int index); |
34 |
|
void SetBitOff(int index); |
35 |
|
void SetRangeOn(int begin, int end); |
46 |
|
TBitVector& operator -=(const TBitVector &src); |
47 |
|
TBitVector& operator |=(const int i); |
48 |
|
|
53 |
– |
bool operator[](const int i); |
54 |
– |
|
49 |
|
void FromIntVec(vector<int> &intVec); |
50 |
|
void ToIntvec(vector<int> &intVec); |
51 |
|
|