tesseract v5.3.3.20231005
dawg.h File Reference
#include <cinttypes>
#include <functional>
#include <memory>
#include "elst.h"
#include "params.h"
#include "ratngs.h"

Go to the source code of this file.

Classes

struct  tesseract::NodeChild
 
class  tesseract::Dawg
 
struct  tesseract::DawgPosition
 
class  tesseract::DawgPositionVector
 
class  tesseract::SquishedDawg
 

Namespaces

namespace  tesseract
 

Macros

#define FORWARD_EDGE   (int32_t)0
 
#define BACKWARD_EDGE   (int32_t)1
 
#define MAX_NODE_EDGES_DISPLAY   (int64_t)100
 
#define MARKER_FLAG   (int64_t)1
 
#define DIRECTION_FLAG   (int64_t)2
 
#define WERD_END_FLAG   (int64_t)4
 
#define LETTER_START_BIT   0
 
#define NUM_FLAG_BITS   3
 
#define REFFORMAT   "%" PRId64
 

Typedefs

using tesseract::EDGE_RECORD = uint64_t
 
using tesseract::EDGE_ARRAY = EDGE_RECORD *
 
using tesseract::EDGE_REF = int64_t
 
using tesseract::NODE_REF = int64_t
 
using tesseract::NODE_MAP = EDGE_REF *
 
using tesseract::NodeChildVector = std::vector< NodeChild >
 
using tesseract::SuccessorList = std::vector< int >
 
using tesseract::SuccessorListsVector = std::vector< SuccessorList * >
 

Enumerations

enum  tesseract::DawgType {
  tesseract::DAWG_TYPE_PUNCTUATION , tesseract::DAWG_TYPE_WORD , tesseract::DAWG_TYPE_NUMBER , tesseract::DAWG_TYPE_PATTERN ,
  tesseract::DAWG_TYPE_COUNT
}
 

Macro Definition Documentation

◆ BACKWARD_EDGE

#define BACKWARD_EDGE   (int32_t)1

Definition at line 78 of file dawg.h.

◆ DIRECTION_FLAG

#define DIRECTION_FLAG   (int64_t)2

Definition at line 81 of file dawg.h.

◆ FORWARD_EDGE

#define FORWARD_EDGE   (int32_t)0

Definition at line 77 of file dawg.h.

◆ LETTER_START_BIT

#define LETTER_START_BIT   0

Definition at line 83 of file dawg.h.

◆ MARKER_FLAG

#define MARKER_FLAG   (int64_t)1

Definition at line 80 of file dawg.h.

◆ MAX_NODE_EDGES_DISPLAY

#define MAX_NODE_EDGES_DISPLAY   (int64_t)100

Definition at line 79 of file dawg.h.

◆ NUM_FLAG_BITS

#define NUM_FLAG_BITS   3

Definition at line 84 of file dawg.h.

◆ REFFORMAT

#define REFFORMAT   "%" PRId64

Definition at line 85 of file dawg.h.

◆ WERD_END_FLAG

#define WERD_END_FLAG   (int64_t)4

Definition at line 82 of file dawg.h.