#include <indexmapbidi.h>
Definition at line 44 of file indexmapbidi.h.
◆ ~IndexMap()
tesseract::IndexMap::~IndexMap |
( |
| ) |
|
|
virtualdefault |
◆ CompactSize()
int tesseract::IndexMap::CompactSize |
( |
| ) |
const |
|
inline |
Definition at line 63 of file indexmapbidi.h.
63 {
65 }
std::vector< int32_t > compact_map_
◆ CompactToSparse()
int tesseract::IndexMap::CompactToSparse |
( |
int |
compact_index | ) |
const |
|
inline |
◆ 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 59 of file indexmapbidi.cpp.
59 {
60 uint32_t sparse_size;
62 return false;
63 }
64 if (swap) {
65 ReverseN(&sparse_size,
sizeof(sparse_size));
66 }
67
68 if (sparse_size > UINT16_MAX) {
69 return false;
70 }
73}
void ReverseN(void *ptr, int num_bytes)
bool DeSerialize(bool swap, FILE *fp, std::vector< T > &data)
◆ Serialize()
bool tesseract::IndexMap::Serialize |
( |
FILE * |
fp | ) |
const |
Definition at line 53 of file indexmapbidi.cpp.
53 {
55}
bool Serialize(FILE *fp, const std::vector< T > &data)
◆ SparseSize()
virtual int tesseract::IndexMap::SparseSize |
( |
| ) |
const |
|
inlinevirtual |
◆ SparseToCompact()
int tesseract::IndexMap::SparseToCompact |
( |
int |
sparse_index | ) |
const |
|
virtual |
◆ compact_map_
std::vector<int32_t> tesseract::IndexMap::compact_map_ |
|
protected |
◆ sparse_size_
int32_t tesseract::IndexMap::sparse_size_ |
|
protected |
The documentation for this class was generated from the following files:
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/ccutil/indexmapbidi.h
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/ccutil/indexmapbidi.cpp