#include <indexmapbidi.h>
Definition at line 42 of file indexmapbidi.h.
virtual tesseract::IndexMap::~IndexMap |
( |
| ) |
|
|
inlinevirtual |
int tesseract::IndexMap::CompactSize |
( |
| ) |
const |
|
inline |
Definition at line 61 of file indexmapbidi.h.
GenericVector< inT32 > compact_map_
int tesseract::IndexMap::CompactToSparse |
( |
int |
compact_index | ) |
const |
|
inline |
Definition at line 53 of file indexmapbidi.h.
GenericVector< inT32 > compact_map_
void tesseract::IndexMap::CopyFrom |
( |
const IndexMap & |
src | ) |
|
void tesseract::IndexMap::CopyFrom |
( |
const IndexMapBiDi & |
src | ) |
|
bool tesseract::IndexMap::DeSerialize |
( |
bool |
swap, |
|
|
FILE * |
fp |
|
) |
| |
Definition at line 52 of file indexmapbidi.cpp.
54 if (fread(&sparse_size,
sizeof(sparse_size), 1, fp) != 1)
return false;
56 ReverseN(&sparse_size,
sizeof(sparse_size));
bool DeSerialize(bool swap, FILE *fp)
void ReverseN(void *ptr, int num_bytes)
GenericVector< inT32 > compact_map_
bool tesseract::IndexMap::Serialize |
( |
FILE * |
fp | ) |
const |
Definition at line 43 of file indexmapbidi.cpp.
45 if (fwrite(&sparse_size,
sizeof(sparse_size), 1, fp) != 1)
return false;
bool Serialize(FILE *fp) const
GenericVector< inT32 > compact_map_
virtual int tesseract::IndexMap::SparseSize |
( |
| ) |
const |
|
inlinevirtual |
int tesseract::IndexMap::SparseToCompact |
( |
int |
sparse_index | ) |
const |
|
virtual |
int tesseract::IndexMap::sparse_size_ |
|
protected |
The documentation for this class was generated from the following files: