#include <indexmapbidi.h>
Definition at line 42 of file indexmapbidi.h.
◆ ~IndexMap()
virtual tesseract::IndexMap::~IndexMap |
( |
| ) |
|
|
inlinevirtual |
◆ CompactSize()
int tesseract::IndexMap::CompactSize |
( |
| ) |
const |
|
inline |
Definition at line 61 of file indexmapbidi.h.
GenericVector< inT32 > compact_map_
◆ CompactToSparse()
int tesseract::IndexMap::CompactToSparse |
( |
int |
compact_index | ) |
const |
|
inline |
Definition at line 53 of file indexmapbidi.h.
GenericVector< inT32 > compact_map_
◆ CopyFrom() [1/2]
void tesseract::IndexMap::CopyFrom |
( |
const IndexMap & |
src | ) |
|
◆ CopyFrom() [2/2]
void tesseract::IndexMap::CopyFrom |
( |
const IndexMapBiDi & |
src | ) |
|
◆ DeSerialize()
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));
GenericVector< inT32 > compact_map_
void ReverseN(void *ptr, int num_bytes)
bool DeSerialize(bool swap, FILE *fp)
◆ Serialize()
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_
◆ SparseSize()
virtual int tesseract::IndexMap::SparseSize |
( |
| ) |
const |
|
inlinevirtual |
◆ SparseToCompact()
int tesseract::IndexMap::SparseToCompact |
( |
int |
sparse_index | ) |
const |
|
virtual |
◆ compact_map_
◆ sparse_size_
int tesseract::IndexMap::sparse_size_ |
|
protected |
The documentation for this class was generated from the following files: