#include <params.h>
Definition at line 148 of file params.h.
◆ IntParam()
tesseract::IntParam::IntParam |
( |
int32_t |
value, |
|
|
const char * |
name, |
|
|
const char * |
comment, |
|
|
bool |
init, |
|
|
ParamsVectors * |
vec |
|
) |
| |
|
inline |
Definition at line 150 of file params.h.
151 :
Param(name, comment, init) {
154 params_vec_ = &(vec->int_params);
155 vec->int_params.push_back(this);
156 }
Param(const char *name, const char *comment, bool init)
◆ ~IntParam()
tesseract::IntParam::~IntParam |
( |
| ) |
|
|
inline |
Definition at line 157 of file params.h.
157 {
158 ParamUtils::RemoveParam<IntParam>(this, params_vec_);
159 }
◆ operator int32_t()
tesseract::IntParam::operator int32_t |
( |
| ) |
const |
|
inline |
Definition at line 160 of file params.h.
160 {
161 return value_;
162 }
◆ operator=()
void tesseract::IntParam::operator= |
( |
int32_t |
value | ) |
|
|
inline |
◆ ResetFrom()
Definition at line 172 of file params.h.
172 {
173 for (auto *param : vec->int_params) {
174 if (strcmp(param->name_str(),
name_) == 0) {
175
176
177 value_ = *param;
178 break;
179 }
180 }
181 }
◆ ResetToDefault()
void tesseract::IntParam::ResetToDefault |
( |
| ) |
|
|
inline |
Definition at line 169 of file params.h.
169 {
170 value_ = default_;
171 }
◆ set_value()
void tesseract::IntParam::set_value |
( |
int32_t |
value | ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/ccutil/params.h