tesseract  5.0.0-alpha-619-ge9db
tesseract::DawgPosition Struct Reference

#include <dawg.h>

Public Member Functions

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

Public Attributes

EDGE_REF dawg_ref = NO_EDGE
 
EDGE_REF punc_ref = NO_EDGE
 
int8_t dawg_index = -1
 
int8_t punc_index = -1
 
bool back_to_punc = false
 

Detailed Description

Definition at line 348 of file dawg.h.

Constructor & Destructor Documentation

◆ DawgPosition() [1/2]

tesseract::DawgPosition::DawgPosition ( )
default

◆ DawgPosition() [2/2]

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

Definition at line 350 of file dawg.h.

354  : dawg_ref(dawgref), punc_ref(puncref),
355  dawg_index(dawg_idx), punc_index(punc_idx),
356  back_to_punc(backtopunc) {

Member Function Documentation

◆ operator==()

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

Definition at line 357 of file dawg.h.

358  {
359  return dawg_index == other.dawg_index &&
360  dawg_ref == other.dawg_ref &&
361  punc_index == other.punc_index &&
362  punc_ref == other.punc_ref &&
363  back_to_punc == other.back_to_punc;

Member Data Documentation

◆ back_to_punc

bool tesseract::DawgPosition::back_to_punc = false

Definition at line 370 of file dawg.h.

◆ dawg_index

int8_t tesseract::DawgPosition::dawg_index = -1

Definition at line 367 of file dawg.h.

◆ dawg_ref

EDGE_REF tesseract::DawgPosition::dawg_ref = NO_EDGE

Definition at line 365 of file dawg.h.

◆ punc_index

int8_t tesseract::DawgPosition::punc_index = -1

Definition at line 368 of file dawg.h.

◆ punc_ref

EDGE_REF tesseract::DawgPosition::punc_ref = NO_EDGE

Definition at line 366 of file dawg.h.


The documentation for this struct was generated from the following file:
tesseract::DawgPosition::punc_ref
EDGE_REF punc_ref
Definition: dawg.h:366
tesseract::DawgPosition::dawg_index
int8_t dawg_index
Definition: dawg.h:367
tesseract::DawgPosition::punc_index
int8_t punc_index
Definition: dawg.h:368
tesseract::DawgPosition::back_to_punc
bool back_to_punc
Definition: dawg.h:370
tesseract::DawgPosition::dawg_ref
EDGE_REF dawg_ref
Definition: dawg.h:365