| 
    tesseract
    5.0.0-alpha-619-ge9db
    
   | 
 
#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 30 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 134 of file bitvector.cpp.
      
  | 
  inline | 
Definition at line 81 of file bitvector.h.
| bool tesseract::BitVector::DeSerialize | ( | bool | swap, | 
| FILE * | fp | ||
| ) | 
Definition at line 153 of file bitvector.cpp.
| void tesseract::BitVector::Init | ( | int | length | ) | 
Definition at line 139 of file bitvector.cpp.
| int tesseract::BitVector::NextSetBit | ( | int | prev_bit | ) | const | 
Definition at line 178 of file bitvector.cpp.
| int tesseract::BitVector::NumSetBits | ( | ) | const | 
Definition at line 216 of file bitvector.cpp.
| void tesseract::BitVector::operator&= | ( | const BitVector & | other | ) | 
Definition at line 236 of file bitvector.cpp.
Definition at line 126 of file bitvector.cpp.
      
  | 
  inline | 
Definition at line 84 of file bitvector.h.
| void tesseract::BitVector::operator^= | ( | const BitVector & | other | ) | 
Definition at line 243 of file bitvector.cpp.
| void tesseract::BitVector::operator|= | ( | const BitVector & | other | ) | 
Definition at line 231 of file bitvector.cpp.
      
  | 
  inline | 
Definition at line 72 of file bitvector.h.
| bool tesseract::BitVector::Serialize | ( | FILE * | fp | ) | const | 
Definition at line 145 of file bitvector.cpp.
| void tesseract::BitVector::SetAllFalse | ( | ) | 
Definition at line 169 of file bitvector.cpp.
| void tesseract::BitVector::SetAllTrue | ( | ) | 
Definition at line 172 of file bitvector.cpp.
      
  | 
  inline | 
Definition at line 69 of file bitvector.h.
Definition at line 249 of file bitvector.cpp.
      
  | 
  inline | 
Definition at line 75 of file bitvector.h.
      
  | 
  inline | 
Definition at line 53 of file bitvector.h.
      
  | 
  static | 
Definition at line 40 of file bitvector.h.
      
  | 
  static | 
Definition at line 38 of file bitvector.h.
      
  | 
  static | 
Definition at line 35 of file bitvector.h.