tesseract  4.00.00dev
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 353 of file dawg.h.

Constructor & Destructor Documentation

◆ DawgPosition() [1/2]

tesseract::DawgPosition::DawgPosition ( )
inline

Definition at line 354 of file dawg.h.

355  : dawg_index(-1), dawg_ref(NO_EDGE), punc_ref(NO_EDGE),
356  back_to_punc(false) {}
EDGE_REF dawg_ref
Definition: dawg.h:373
EDGE_REF punc_ref
Definition: dawg.h:375

◆ DawgPosition() [2/2]

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

Definition at line 357 of file dawg.h.

360  : dawg_index(dawg_idx), dawg_ref(dawgref),
361  punc_index(punc_idx), punc_ref(puncref),
362  back_to_punc(backtopunc) {
363  }
EDGE_REF dawg_ref
Definition: dawg.h:373
EDGE_REF punc_ref
Definition: dawg.h:375

Member Function Documentation

◆ operator==()

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

Definition at line 364 of file dawg.h.

364  {
365  return dawg_index == other.dawg_index &&
366  dawg_ref == other.dawg_ref &&
367  punc_index == other.punc_index &&
368  punc_ref == other.punc_ref &&
369  back_to_punc == other.back_to_punc;
370  }
EDGE_REF dawg_ref
Definition: dawg.h:373
EDGE_REF punc_ref
Definition: dawg.h:375

Member Data Documentation

◆ back_to_punc

bool tesseract::DawgPosition::back_to_punc

Definition at line 377 of file dawg.h.

◆ dawg_index

inT8 tesseract::DawgPosition::dawg_index

Definition at line 372 of file dawg.h.

◆ dawg_ref

EDGE_REF tesseract::DawgPosition::dawg_ref

Definition at line 373 of file dawg.h.

◆ punc_index

inT8 tesseract::DawgPosition::punc_index

Definition at line 374 of file dawg.h.

◆ punc_ref

EDGE_REF tesseract::DawgPosition::punc_ref

Definition at line 375 of file dawg.h.


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