tesseract 3.04.01

tesseract::IndexMap Class Reference

#include <indexmapbidi.h>

Inheritance diagram for tesseract::IndexMap:
tesseract::IndexMapBiDi

List of all members.

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< inT32compact_map_

Detailed Description

Definition at line 42 of file indexmapbidi.h.


Constructor & Destructor Documentation

virtual tesseract::IndexMap::~IndexMap ( ) [inline, virtual]

Definition at line 44 of file indexmapbidi.h.

{}

Member Function Documentation

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]

Reimplemented in tesseract::IndexMapBiDi.

Definition at line 28 of file indexmapbidi.cpp.

                                                       : -1;
}


Member Data Documentation

Definition at line 80 of file indexmapbidi.h.

Definition at line 77 of file indexmapbidi.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines