#include <paragraphs_internal.h>
Definition at line 189 of file paragraphs_internal.h.
◆ ParagraphTheory()
◆ AddModel()
Definition at line 1214 of file paragraphs.cpp.
1215 for (
int i = 0; i < models_->
size(); i++) {
1216 if ((*models_)[i]->Comparable(model))
1217 return (*models_)[i];
int push_back_new(T object)
◆ DiscardUnusedModels()
void tesseract::ParagraphTheory::DiscardUnusedModels |
( |
const SetOfModels & |
used_models | ) |
|
Definition at line 1225 of file paragraphs.cpp.
1226 for (
int i = models_->
size() - 1; i >= 0; i--) {
1228 if (!used_models.contains(m) && models_we_added_.
contains(m)) {
bool contains(T object) const
int get_index(T object) const
◆ Fits()
Definition at line 1239 of file paragraphs.cpp.
1241 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 1258 of file paragraphs.cpp.
1259 for (
int i = 0; i < models_->
size(); i++) {
1260 if ((*models_)[i] == model)
◆ models() [1/2]
◆ models() [2/2]
◆ NonCenteredModels()
void tesseract::ParagraphTheory::NonCenteredModels |
( |
SetOfModels * |
models | ) |
|
Definition at line 1250 of file paragraphs.cpp.
1251 for (
int m = 0; m < models_->
size(); m++) {
int push_back_new(T object)
tesseract::ParagraphJustification justification() const
GenericVector< ParagraphModel * > & models()
The documentation for this class was generated from the following files: