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

#include <unicharcompress.h>

Classes

struct  RecodedCharIDHash
 

Public Member Functions

 RecodedCharID ()
 
void Truncate (int length)
 
void Set (int index, int value)
 
void Set3 (int code0, int code1, int code2)
 
int length () const
 
int operator() (int index) const
 
bool Serialize (TFile *fp) const
 
bool DeSerialize (TFile *fp)
 
bool operator== (const RecodedCharID &other) const
 

Static Public Attributes

static const int kMaxCodeLen = 9
 

Private Attributes

int8_t self_normalized_
 
int32_t length_
 
int32_t code_ [kMaxCodeLen]
 

Constructor & Destructor Documentation

◆ RecodedCharID()

tesseract::RecodedCharID::RecodedCharID ( )
inline

Member Function Documentation

◆ DeSerialize()

bool tesseract::RecodedCharID::DeSerialize ( TFile fp)
inline

◆ length()

int tesseract::RecodedCharID::length ( ) const
inline

◆ operator()()

int tesseract::RecodedCharID::operator() ( int  index) const
inline

◆ operator==()

bool tesseract::RecodedCharID::operator== ( const RecodedCharID other) const
inline

◆ Serialize()

bool tesseract::RecodedCharID::Serialize ( TFile fp) const
inline

◆ Set()

void tesseract::RecodedCharID::Set ( int  index,
int  value 
)
inline

◆ Set3()

void tesseract::RecodedCharID::Set3 ( int  code0,
int  code1,
int  code2 
)
inline

◆ Truncate()

void tesseract::RecodedCharID::Truncate ( int  length)
inline

Member Data Documentation

◆ code_

int32_t tesseract::RecodedCharID::code_[kMaxCodeLen]
private

◆ kMaxCodeLen

const int tesseract::RecodedCharID::kMaxCodeLen = 9
static

◆ length_

int32_t tesseract::RecodedCharID::length_
private

◆ self_normalized_

int8_t tesseract::RecodedCharID::self_normalized_
private

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