#include <params.h>
Definition at line 138 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 140 of file params.h.
142 :
Param(name, comment, init) {
143 value_ = value;
144 default_ = value;
145 params_vec_ = &(vec->int_params);
146 vec->int_params.push_back(this);
147 }
Param(const char *name, const char *comment, bool init)
◆ ~IntParam()
tesseract::IntParam::~IntParam |
( |
| ) |
|
|
inline |
Definition at line 148 of file params.h.
148{ ParamUtils::RemoveParam<IntParam>(this, params_vec_); }
◆ operator int32_t()
tesseract::IntParam::operator int32_t |
( |
| ) |
const |
|
inline |
◆ operator=()
void tesseract::IntParam::operator= |
( |
int32_t |
value | ) |
|
|
inline |
◆ ResetFrom()
Definition at line 153 of file params.h.
153 {
154 for (int i = 0; i < vec->int_params.size(); ++i) {
155 if (strcmp(vec->int_params[i]->name_str(),
name_) == 0) {
156
157
158 value_ = *vec->int_params[i];
159 break;
160 }
161 }
162 }
◆ ResetToDefault()
void tesseract::IntParam::ResetToDefault |
( |
| ) |
|
|
inline |
Definition at line 152 of file params.h.
152{ value_ = default_; }
◆ set_value()
void tesseract::IntParam::set_value |
( |
int32_t |
value | ) |
|
|
inline |
The documentation for this class was generated from the following file: