tesseract  5.0.0-alpha-619-ge9db
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

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

◆ DIRECTION_FLAG

#define DIRECTION_FLAG   (int64_t) 2

Definition at line 83 of file dawg.h.

◆ FORWARD_EDGE

#define FORWARD_EDGE   (int32_t) 0

Definition at line 79 of file dawg.h.

◆ LETTER_START_BIT

#define LETTER_START_BIT   0

Definition at line 85 of file dawg.h.

◆ MARKER_FLAG

#define MARKER_FLAG   (int64_t) 1

Definition at line 82 of file dawg.h.

◆ MAX_NODE_EDGES_DISPLAY

#define MAX_NODE_EDGES_DISPLAY   (int64_t) 100

Definition at line 81 of file dawg.h.

◆ NUM_FLAG_BITS

#define NUM_FLAG_BITS   3

Definition at line 86 of file dawg.h.

◆ REFFORMAT

#define REFFORMAT   "%" PRId64

Definition at line 87 of file dawg.h.

◆ WERD_END_FLAG

#define WERD_END_FLAG   (int64_t) 4

Definition at line 84 of file dawg.h.

Typedef Documentation

◆ EDGE_ARRAY

Definition at line 48 of file dawg.h.

◆ EDGE_RECORD

using EDGE_RECORD = uint64_t

Definition at line 47 of file dawg.h.

◆ EDGE_REF

using EDGE_REF = int64_t

Definition at line 49 of file dawg.h.

◆ NODE_MAP

using NODE_MAP = EDGE_REF *

Definition at line 51 of file dawg.h.

◆ NODE_REF

using NODE_REF = int64_t

Definition at line 50 of file dawg.h.