tesseract v5.3.3.20231005
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) const
 

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 355 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 357 of file dawg.h.

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

Member Function Documentation

◆ operator==()

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

Definition at line 364 of file dawg.h.

364 {
365 return dawg_index == other.dawg_index && dawg_ref == other.dawg_ref &&
366 punc_index == other.punc_index && punc_ref == other.punc_ref &&
367 back_to_punc == other.back_to_punc;
368 }

Member Data Documentation

◆ back_to_punc

bool tesseract::DawgPosition::back_to_punc = false

Definition at line 375 of file dawg.h.

◆ dawg_index

int8_t tesseract::DawgPosition::dawg_index = -1

Definition at line 372 of file dawg.h.

◆ dawg_ref

EDGE_REF tesseract::DawgPosition::dawg_ref = NO_EDGE

Definition at line 370 of file dawg.h.

◆ punc_index

int8_t tesseract::DawgPosition::punc_index = -1

Definition at line 373 of file dawg.h.

◆ punc_ref

EDGE_REF tesseract::DawgPosition::punc_ref = NO_EDGE

Definition at line 371 of file dawg.h.


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