tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::IndexMapBiDi Class Reference

#include <indexmapbidi.h>

Inheritance diagram for tesseract::IndexMapBiDi:
Collaboration diagram for tesseract::IndexMapBiDi:

Public Member Functions

virtual ~IndexMapBiDi ()
 
void InitAndSetupRange (int sparse_size, int start, int end)
 
void Init (int size, bool all_mapped)
 
void SetMap (int sparse_index, bool mapped)
 
void Setup ()
 
bool Merge (int compact_index1, int compact_index2)
 
bool IsCompactDeleted (int index) const
 
void CompleteMerges ()
 
virtual int SparseToCompact (int sparse_index) const
 
virtual int SparseSize () const
 
void CopyFrom (const IndexMapBiDi &src)
 
bool Serialize (FILE *fp) const
 
bool DeSerialize (bool swap, FILE *fp)
 
int MapFeatures (const GenericVector< int > &sparse, GenericVector< int > *compact) const
 
- Public Member Functions inherited from tesseract::IndexMap
virtual ~IndexMap ()
 
int CompactToSparse (int compact_index) 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)
 

Private Member Functions

int MasterCompactIndex (int compact_index) const
 

Private Attributes

GenericVector< int32_t > sparse_map_
 

Additional Inherited Members

- Protected Attributes inherited from tesseract::IndexMap
int32_t sparse_size_
 
GenericVector< int32_t > compact_map_
 

Constructor & Destructor Documentation

◆ ~IndexMapBiDi()

tesseract::IndexMapBiDi::~IndexMapBiDi ( )
virtualdefault

Member Function Documentation

◆ CompleteMerges()

void tesseract::IndexMapBiDi::CompleteMerges ( )

◆ CopyFrom()

void tesseract::IndexMapBiDi::CopyFrom ( const IndexMapBiDi src)

◆ DeSerialize()

bool tesseract::IndexMapBiDi::DeSerialize ( bool  swap,
FILE *  fp 
)

◆ Init()

void tesseract::IndexMapBiDi::Init ( int  size,
bool  all_mapped 
)

◆ InitAndSetupRange()

void tesseract::IndexMapBiDi::InitAndSetupRange ( int  sparse_size,
int  start,
int  end 
)

◆ IsCompactDeleted()

bool tesseract::IndexMapBiDi::IsCompactDeleted ( int  index) const
inline

◆ MapFeatures()

int tesseract::IndexMapBiDi::MapFeatures ( const GenericVector< int > &  sparse,
GenericVector< int > *  compact 
) const

◆ MasterCompactIndex()

int tesseract::IndexMapBiDi::MasterCompactIndex ( int  compact_index) const
inlineprivate

◆ Merge()

bool tesseract::IndexMapBiDi::Merge ( int  compact_index1,
int  compact_index2 
)

◆ Serialize()

bool tesseract::IndexMapBiDi::Serialize ( FILE *  fp) const

◆ SetMap()

void tesseract::IndexMapBiDi::SetMap ( int  sparse_index,
bool  mapped 
)

◆ Setup()

void tesseract::IndexMapBiDi::Setup ( )

◆ SparseSize()

virtual int tesseract::IndexMapBiDi::SparseSize ( ) const
inlinevirtual

Reimplemented from tesseract::IndexMap.

◆ SparseToCompact()

virtual int tesseract::IndexMapBiDi::SparseToCompact ( int  sparse_index) const
inlinevirtual

Reimplemented from tesseract::IndexMap.

Member Data Documentation

◆ sparse_map_

GenericVector<int32_t> tesseract::IndexMapBiDi::sparse_map_
private

The documentation for this class was generated from the following files: