#include <bitvector.h>
Public Member Functions | |
| BitVector () | |
| BitVector (int length) | |
| BitVector (const BitVector &src) | |
| BitVector & | operator= (const BitVector &src) |
| ~BitVector () | |
| void | Init (int length) |
| int | size () const |
| bool | Serialize (FILE *fp) const |
| bool | DeSerialize (bool swap, FILE *fp) |
| void | SetAllFalse () |
| void | SetAllTrue () |
| void | SetBit (int index) |
| void | ResetBit (int index) |
| void | SetValue (int index, bool value) |
| bool | At (int index) const |
| bool | operator[] (int index) const |
| int | NextSetBit (int prev_bit) const |
| int | NumSetBits () const |
| void | operator|= (const BitVector &other) |
| void | operator&= (const BitVector &other) |
| void | operator^= (const BitVector &other) |
| void | SetSubtract (const BitVector &v1, const BitVector &v2) |
Static Public Attributes | |
| static const uinT8 | lsb_index_ [256] |
| static const uinT8 | lsb_eroded_ [256] |
| static const int | hamming_table_ [256] |
Definition at line 34 of file bitvector.h.
| tesseract::BitVector::BitVector | ( | ) |
Definition at line 109 of file bitvector.cpp.
|
explicit |
Definition at line 111 of file bitvector.cpp.
| tesseract::BitVector::BitVector | ( | const BitVector & | src | ) |
Definition at line 116 of file bitvector.cpp.
| tesseract::BitVector::~BitVector | ( | ) |
Definition at line 127 of file bitvector.cpp.
|
inline |
Definition at line 85 of file bitvector.h.
| bool tesseract::BitVector::DeSerialize | ( | bool | swap, |
| FILE * | fp | ||
| ) |
Definition at line 148 of file bitvector.cpp.
| void tesseract::BitVector::Init | ( | int | length | ) |
Definition at line 132 of file bitvector.cpp.
| int tesseract::BitVector::NextSetBit | ( | int | prev_bit | ) | const |
Definition at line 174 of file bitvector.cpp.
| int tesseract::BitVector::NumSetBits | ( | ) | const |
Definition at line 212 of file bitvector.cpp.
| void tesseract::BitVector::operator&= | ( | const BitVector & | other | ) |
Definition at line 232 of file bitvector.cpp.
Definition at line 121 of file bitvector.cpp.
|
inline |
Definition at line 88 of file bitvector.h.
| void tesseract::BitVector::operator^= | ( | const BitVector & | other | ) |
Definition at line 239 of file bitvector.cpp.
| void tesseract::BitVector::operator|= | ( | const BitVector & | other | ) |
Definition at line 227 of file bitvector.cpp.
|
inline |
Definition at line 76 of file bitvector.h.
| bool tesseract::BitVector::Serialize | ( | FILE * | fp | ) | const |
Definition at line 138 of file bitvector.cpp.
| void tesseract::BitVector::SetAllFalse | ( | ) |
Definition at line 165 of file bitvector.cpp.
| void tesseract::BitVector::SetAllTrue | ( | ) |
Definition at line 168 of file bitvector.cpp.
|
inline |
Definition at line 73 of file bitvector.h.
Definition at line 245 of file bitvector.cpp.
|
inline |
Definition at line 79 of file bitvector.h.
|
inline |
Definition at line 57 of file bitvector.h.
|
static |
Definition at line 44 of file bitvector.h.
|
static |
Definition at line 42 of file bitvector.h.
|
static |
Definition at line 39 of file bitvector.h.