tesseract  5.0.0-alpha-619-ge9db
tesseract::WordData Struct Reference

#include <tesseractclass.h>

Public Member Functions

 WordData ()
 
 WordData (const PAGE_RES_IT &page_res_it)
 
 WordData (BLOCK *block_in, ROW *row_in, WERD_RES *word_res)
 

Public Attributes

WERD_RESword
 
ROWrow
 
BLOCKblock
 
WordDataprev_word
 
PointerVector< WERD_RESlang_words
 

Detailed Description

Definition at line 144 of file tesseractclass.h.

Constructor & Destructor Documentation

◆ WordData() [1/3]

tesseract::WordData::WordData ( )
inline

Definition at line 145 of file tesseractclass.h.

146  : word(nullptr), row(nullptr), block(nullptr), prev_word(nullptr) {}

◆ WordData() [2/3]

tesseract::WordData::WordData ( const PAGE_RES_IT page_res_it)
inlineexplicit

Definition at line 147 of file tesseractclass.h.

148  : word(page_res_it.word()),
149  row(page_res_it.row()->row),
150  block(page_res_it.block()->block),
151  prev_word(nullptr) {}

◆ WordData() [3/3]

tesseract::WordData::WordData ( BLOCK block_in,
ROW row_in,
WERD_RES word_res 
)
inline

Definition at line 152 of file tesseractclass.h.

153  : word(word_res), row(row_in), block(block_in), prev_word(nullptr) {}

Member Data Documentation

◆ block

BLOCK* tesseract::WordData::block

Definition at line 157 of file tesseractclass.h.

◆ lang_words

PointerVector<WERD_RES> tesseract::WordData::lang_words

Definition at line 159 of file tesseractclass.h.

◆ prev_word

WordData* tesseract::WordData::prev_word

Definition at line 158 of file tesseractclass.h.

◆ row

ROW* tesseract::WordData::row

Definition at line 156 of file tesseractclass.h.

◆ word

WERD_RES* tesseract::WordData::word

Definition at line 155 of file tesseractclass.h.


The documentation for this struct was generated from the following file:
PAGE_RES_IT::block
BLOCK_RES * block() const
Definition: pageres.h:754
PAGE_RES_IT::row
ROW_RES * row() const
Definition: pageres.h:751
tesseract::WordData::row
ROW * row
Definition: tesseractclass.h:156
tesseract::WordData::block
BLOCK * block
Definition: tesseractclass.h:157
tesseract::WordData::word
WERD_RES * word
Definition: tesseractclass.h:155
ROW_RES::row
ROW * row
Definition: pageres.h:136
PAGE_RES_IT::word
WERD_RES * word() const
Definition: pageres.h:748
BLOCK_RES::block
BLOCK * block
Definition: pageres.h:113
tesseract::WordData::prev_word
WordData * prev_word
Definition: tesseractclass.h:158