#include <paragraphs_internal.h>
Definition at line 192 of file paragraphs_internal.h.
◆ ParagraphTheory()
◆ AddModel()
Definition at line 1227 of file paragraphs.cpp.
1228 for (
int i = 0; i < models_->
size(); i++) {
1229 if ((*models_)[i]->Comparable(model))
1230 return (*models_)[i];
int push_back_new(const T &object)
◆ DiscardUnusedModels()
void tesseract::ParagraphTheory::DiscardUnusedModels |
( |
const SetOfModels & |
used_models | ) |
|
Definition at line 1238 of file paragraphs.cpp.
1239 for (
int i = models_->
size() - 1; i >= 0; i--) {
1241 if (!used_models.contains(m) && models_we_added_.
contains(m)) {
bool contains(const T &object) const
int get_index(const T &object) const
◆ Fits()
Definition at line 1252 of file paragraphs.cpp.
1254 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 1271 of file paragraphs.cpp.
1272 for (
int i = 0; i < models_->
size(); i++) {
1273 if ((*models_)[i] == model)
◆ models() [1/2]
◆ models() [2/2]
◆ NonCenteredModels()
void tesseract::ParagraphTheory::NonCenteredModels |
( |
SetOfModels * |
models | ) |
|
Definition at line 1263 of file paragraphs.cpp.
1264 for (
int m = 0; m < models_->
size(); m++) {
GenericVector< ParagraphModel * > & models()
tesseract::ParagraphJustification justification() const
int push_back_new(const T &object)
The documentation for this class was generated from the following files: