#include <params.h>
Definition at line 147 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 149 of file params.h.
150 :
Param(name, comment, init) {
151 value_ = value;
152 default_ = value;
153 params_vec_ = &(vec->int_params);
154 vec->int_params.push_back(this);
155 }
Param(const char *name, const char *comment, bool init)
◆ ~IntParam()
tesseract::IntParam::~IntParam |
( |
| ) |
|
|
inline |
Definition at line 156 of file params.h.
156 {
157 ParamUtils::RemoveParam<IntParam>(this, params_vec_);
158 }
◆ operator int32_t()
tesseract::IntParam::operator int32_t |
( |
| ) |
const |
|
inline |
Definition at line 159 of file params.h.
159 {
160 return value_;
161 }
◆ operator=()
void tesseract::IntParam::operator= |
( |
int32_t |
value | ) |
|
|
inline |
Definition at line 162 of file params.h.
162 {
163 value_ = value;
164 }
◆ ResetFrom()
Definition at line 171 of file params.h.
171 {
172 for (auto *param : vec->int_params) {
173 if (strcmp(param->name_str(),
name_) == 0) {
174
175
176 value_ = *param;
177 break;
178 }
179 }
180 }
◆ ResetToDefault()
void tesseract::IntParam::ResetToDefault |
( |
| ) |
|
|
inline |
Definition at line 168 of file params.h.
168 {
169 value_ = default_;
170 }
◆ set_value()
void tesseract::IntParam::set_value |
( |
int32_t |
value | ) |
|
|
inline |
Definition at line 165 of file params.h.
165 {
166 value_ = value;
167 }
The documentation for this class was generated from the following file: