#include <paragraphs_internal.h>
Definition at line 192 of file paragraphs_internal.h.
◆ ParagraphTheory()
◆ AddModel()
Definition at line 1225 of file paragraphs.cpp.
1226 for (
int i = 0; i < models_->
size(); i++) {
1227 if ((*models_)[i]->Comparable(model))
1228 return (*models_)[i];
int push_back_new(const T &object)
◆ DiscardUnusedModels()
void tesseract::ParagraphTheory::DiscardUnusedModels |
( |
const SetOfModels & |
used_models | ) |
|
Definition at line 1236 of file paragraphs.cpp.
1237 for (
int i = models_->
size() - 1; i >= 0; i--) {
1239 if (!used_models.contains(m) && models_we_added_.
contains(m)) {
int get_index(const T &object) const
bool contains(const T &object) const
◆ Fits()
Definition at line 1250 of file paragraphs.cpp.
1252 for (
int m = 0; m < models_->
size(); m++) {
tesseract::ParagraphJustification justification() const
bool RowsFitModel(const GenericVector< RowScratchRegisters > *rows, int start, int end, const ParagraphModel *model)
◆ IndexOf()
int tesseract::ParagraphTheory::IndexOf |
( |
const ParagraphModel * |
model | ) |
const |
Definition at line 1269 of file paragraphs.cpp.
1270 for (
int i = 0; i < models_->
size(); i++) {
1271 if ((*models_)[i] == model)
◆ models() [1/2]
◆ models() [2/2]
◆ NonCenteredModels()
void tesseract::ParagraphTheory::NonCenteredModels |
( |
SetOfModels * |
models | ) |
|
Definition at line 1261 of file paragraphs.cpp.
1262 for (
int m = 0; m < models_->
size(); m++) {
tesseract::ParagraphJustification justification() const
int push_back_new(const T &object)
GenericVector< ParagraphModel * > & models()
The documentation for this class was generated from the following files: