tesseract  4.0.0-1-g2a2b
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_t dawg_index
 
EDGE_REF dawg_ref
 
int8_t punc_index
 
EDGE_REF punc_ref
 
bool back_to_punc
 

Detailed Description

Definition at line 354 of file dawg.h.

Constructor & Destructor Documentation

◆ DawgPosition() [1/2]

tesseract::DawgPosition::DawgPosition ( )
inline

Definition at line 355 of file dawg.h.

356  : dawg_index(-1), dawg_ref(NO_EDGE), punc_ref(NO_EDGE),
357  back_to_punc(false) {}
EDGE_REF dawg_ref
Definition: dawg.h:374
EDGE_REF punc_ref
Definition: dawg.h:376

◆ DawgPosition() [2/2]

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

Definition at line 358 of file dawg.h.

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

Member Function Documentation

◆ operator==()

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

Definition at line 365 of file dawg.h.

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

Member Data Documentation

◆ back_to_punc

bool tesseract::DawgPosition::back_to_punc

Definition at line 378 of file dawg.h.

◆ dawg_index

int8_t tesseract::DawgPosition::dawg_index

Definition at line 373 of file dawg.h.

◆ dawg_ref

EDGE_REF tesseract::DawgPosition::dawg_ref

Definition at line 374 of file dawg.h.

◆ punc_index

int8_t tesseract::DawgPosition::punc_index

Definition at line 375 of file dawg.h.

◆ punc_ref

EDGE_REF tesseract::DawgPosition::punc_ref

Definition at line 376 of file dawg.h.


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