tesseract
4.0.0-1-g2a2b
|
#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_t | lsb_index_ [256] |
static const uint8_t | lsb_eroded_ [256] |
static const int | hamming_table_ [256] |
Definition at line 33 of file bitvector.h.
tesseract::BitVector::BitVector | ( | ) |
Definition at line 110 of file bitvector.cpp.
|
explicit |
Definition at line 112 of file bitvector.cpp.
tesseract::BitVector::BitVector | ( | const BitVector & | src | ) |
Definition at line 117 of file bitvector.cpp.
tesseract::BitVector::~BitVector | ( | ) |
Definition at line 128 of file bitvector.cpp.
|
inline |
Definition at line 84 of file bitvector.h.
bool tesseract::BitVector::DeSerialize | ( | bool | swap, |
FILE * | fp | ||
) |
Definition at line 147 of file bitvector.cpp.
void tesseract::BitVector::Init | ( | int | length | ) |
Definition at line 133 of file bitvector.cpp.
int tesseract::BitVector::NextSetBit | ( | int | prev_bit | ) | const |
Definition at line 172 of file bitvector.cpp.
int tesseract::BitVector::NumSetBits | ( | ) | const |
Definition at line 210 of file bitvector.cpp.
void tesseract::BitVector::operator&= | ( | const BitVector & | other | ) |
Definition at line 122 of file bitvector.cpp.
|
inline |
Definition at line 87 of file bitvector.h.
void tesseract::BitVector::operator^= | ( | const BitVector & | other | ) |
Definition at line 237 of file bitvector.cpp.
void tesseract::BitVector::operator|= | ( | const BitVector & | other | ) |
Definition at line 225 of file bitvector.cpp.
|
inline |
Definition at line 75 of file bitvector.h.
bool tesseract::BitVector::Serialize | ( | FILE * | fp | ) | const |
Definition at line 139 of file bitvector.cpp.
void tesseract::BitVector::SetAllFalse | ( | ) |
Definition at line 163 of file bitvector.cpp.
void tesseract::BitVector::SetAllTrue | ( | ) |
Definition at line 166 of file bitvector.cpp.
|
inline |
Definition at line 72 of file bitvector.h.
Definition at line 243 of file bitvector.cpp.
|
inline |
Definition at line 78 of file bitvector.h.
|
inline |
Definition at line 56 of file bitvector.h.
|
static |
Definition at line 43 of file bitvector.h.
|
static |
Definition at line 41 of file bitvector.h.
|
static |
Definition at line 38 of file bitvector.h.