tesseract  3.05.02
tesseract::DawgPosition Struct Reference

#include <dawg.h>

Public Member Functions

 DawgPosition ()
 
 DawgPosition (int dawg_idx, EDGE_REF dawgref, int punc_idx, EDGE_REF puncref, bool backtopunc)
 
bool operator== (const DawgPosition &other)
 

Public Attributes

inT8 dawg_index
 
EDGE_REF dawg_ref
 
inT8 punc_index
 
EDGE_REF punc_ref
 
bool back_to_punc
 

Detailed Description

Definition at line 349 of file dawg.h.

Constructor & Destructor Documentation

◆ DawgPosition() [1/2]

tesseract::DawgPosition::DawgPosition ( )
inline

Definition at line 350 of file dawg.h.

351  : dawg_index(-1), dawg_ref(NO_EDGE), punc_ref(NO_EDGE),
352  back_to_punc(false) {}
EDGE_REF dawg_ref
Definition: dawg.h:369
EDGE_REF punc_ref
Definition: dawg.h:371

◆ DawgPosition() [2/2]

tesseract::DawgPosition::DawgPosition ( int  dawg_idx,
EDGE_REF  dawgref,
int  punc_idx,
EDGE_REF  puncref,
bool  backtopunc 
)
inline

Definition at line 353 of file dawg.h.

356  : dawg_index(dawg_idx), dawg_ref(dawgref),
357  punc_index(punc_idx), punc_ref(puncref),
358  back_to_punc(backtopunc) {
359  }
EDGE_REF dawg_ref
Definition: dawg.h:369
EDGE_REF punc_ref
Definition: dawg.h:371

Member Function Documentation

◆ operator==()

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

Definition at line 360 of file dawg.h.

360  {
361  return dawg_index == other.dawg_index &&
362  dawg_ref == other.dawg_ref &&
363  punc_index == other.punc_index &&
364  punc_ref == other.punc_ref &&
365  back_to_punc == other.back_to_punc;
366  }
EDGE_REF dawg_ref
Definition: dawg.h:369
EDGE_REF punc_ref
Definition: dawg.h:371

Member Data Documentation

◆ back_to_punc

bool tesseract::DawgPosition::back_to_punc

Definition at line 373 of file dawg.h.

◆ dawg_index

inT8 tesseract::DawgPosition::dawg_index

Definition at line 368 of file dawg.h.

◆ dawg_ref

EDGE_REF tesseract::DawgPosition::dawg_ref

Definition at line 369 of file dawg.h.

◆ punc_index

inT8 tesseract::DawgPosition::punc_index

Definition at line 370 of file dawg.h.

◆ punc_ref

EDGE_REF tesseract::DawgPosition::punc_ref

Definition at line 371 of file dawg.h.


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