tesseract  4.0.0-beta.1-59-g2cc4
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

typedef uint64_t EDGE_RECORD
 
typedef EDGE_RECORDEDGE_ARRAY
 
typedef int64_t EDGE_REF
 
typedef int64_t NODE_REF
 
typedef EDGE_REFNODE_MAP
 
typedef GenericVector< NodeChild > tesseract::NodeChildVector
 
typedef GenericVector< int > tesseract::SuccessorList
 
typedef GenericVector< SuccessorList * > tesseract::SuccessorListsVector
 

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

typedef uint64_t EDGE_RECORD

Definition at line 51 of file dawg.h.

◆ EDGE_REF

typedef int64_t EDGE_REF

Definition at line 55 of file dawg.h.

◆ NODE_MAP

typedef EDGE_REF* NODE_MAP

Definition at line 57 of file dawg.h.

◆ NODE_REF

typedef int64_t NODE_REF

Definition at line 56 of file dawg.h.