tesseract  4.0.0-1-g2a2b
dawg.h File Reference
#include <memory>
#include "elst.h"
#include "params.h"
#include "ratngs.h"
#include "tesscallback.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

 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 EDGE_RECORD = uint64_t
 
using EDGE_ARRAY = EDGE_RECORD *
 
using EDGE_REF = int64_t
 
using NODE_REF = int64_t
 
using NODE_MAP = EDGE_REF *
 
using tesseract::NodeChildVector = GenericVector< NodeChild >
 
using tesseract::SuccessorList = GenericVector< int >
 
using tesseract::SuccessorListsVector = GenericVector< 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 86 of file dawg.h.

◆ DIRECTION_FLAG

#define DIRECTION_FLAG   (int64_t) 2

Definition at line 89 of file dawg.h.

◆ FORWARD_EDGE

#define FORWARD_EDGE   (int32_t) 0

Definition at line 85 of file dawg.h.

◆ LETTER_START_BIT

#define LETTER_START_BIT   0

Definition at line 91 of file dawg.h.

◆ MARKER_FLAG

#define MARKER_FLAG   (int64_t) 1

Definition at line 88 of file dawg.h.

◆ MAX_NODE_EDGES_DISPLAY

#define MAX_NODE_EDGES_DISPLAY   (int64_t) 100

Definition at line 87 of file dawg.h.

◆ NUM_FLAG_BITS

#define NUM_FLAG_BITS   3

Definition at line 92 of file dawg.h.

◆ REFFORMAT

#define REFFORMAT   "%" PRId64

Definition at line 93 of file dawg.h.

◆ WERD_END_FLAG

#define WERD_END_FLAG   (int64_t) 4

Definition at line 90 of file dawg.h.

Typedef Documentation

◆ EDGE_ARRAY

Definition at line 54 of file dawg.h.

◆ EDGE_RECORD

using EDGE_RECORD = uint64_t

Definition at line 53 of file dawg.h.

◆ EDGE_REF

using EDGE_REF = int64_t

Definition at line 55 of file dawg.h.

◆ NODE_MAP

using NODE_MAP = EDGE_REF *

Definition at line 57 of file dawg.h.

◆ NODE_REF

using NODE_REF = int64_t

Definition at line 56 of file dawg.h.