|
tesseract 3.04.01
|
#include <indexmapbidi.h>
Public Member Functions | |
| virtual | ~IndexMap () |
| virtual int | SparseToCompact (int sparse_index) const |
| int | CompactToSparse (int compact_index) const |
| virtual int | SparseSize () const |
| int | CompactSize () const |
| void | CopyFrom (const IndexMap &src) |
| void | CopyFrom (const IndexMapBiDi &src) |
| bool | Serialize (FILE *fp) const |
| bool | DeSerialize (bool swap, FILE *fp) |
Protected Attributes | |
| int | sparse_size_ |
| GenericVector< inT32 > | compact_map_ |
Definition at line 42 of file indexmapbidi.h.
| virtual tesseract::IndexMap::~IndexMap | ( | ) | [inline, virtual] |
Definition at line 44 of file indexmapbidi.h.
{}
| int tesseract::IndexMap::CompactSize | ( | ) | const [inline] |
Definition at line 61 of file indexmapbidi.h.
{
return compact_map_.size();
}
| int tesseract::IndexMap::CompactToSparse | ( | int | compact_index | ) | const [inline] |
Definition at line 53 of file indexmapbidi.h.
{
return compact_map_[compact_index];
}
| void tesseract::IndexMap::CopyFrom | ( | const IndexMap & | src | ) |
Definition at line 34 of file indexmapbidi.cpp.
{
| void tesseract::IndexMap::CopyFrom | ( | const IndexMapBiDi & | src | ) |
Reimplemented in tesseract::IndexMapBiDi.
Definition at line 38 of file indexmapbidi.cpp.
| bool tesseract::IndexMap::DeSerialize | ( | bool | swap, |
| FILE * | fp | ||
| ) |
Reimplemented in tesseract::IndexMapBiDi.
Definition at line 53 of file indexmapbidi.cpp.
| bool tesseract::IndexMap::Serialize | ( | FILE * | fp | ) | const |
Reimplemented in tesseract::IndexMapBiDi.
Definition at line 44 of file indexmapbidi.cpp.
| virtual int tesseract::IndexMap::SparseSize | ( | ) | const [inline, virtual] |
Reimplemented in tesseract::IndexMapBiDi.
Definition at line 57 of file indexmapbidi.h.
{
return sparse_size_;
}
| usr src packages BUILD tesseract ccutil indexmapbidi cpp int tesseract::IndexMap::SparseToCompact | ( | int | sparse_index | ) | const [virtual] |
GenericVector<inT32> tesseract::IndexMap::compact_map_ [protected] |
Definition at line 80 of file indexmapbidi.h.
int tesseract::IndexMap::sparse_size_ [protected] |
Definition at line 77 of file indexmapbidi.h.