#include <params.h>
Definition at line 241 of file params.h.
◆ DoubleParam()
tesseract::DoubleParam::DoubleParam |
( |
double |
value, |
|
|
const char * |
name, |
|
|
const char * |
comment, |
|
|
bool |
init, |
|
|
ParamsVectors * |
vec |
|
) |
| |
|
inline |
Definition at line 243 of file params.h.
245 :
Param(name, comment, init) {
246 value_ = value;
247 default_ = value;
248 params_vec_ = &(vec->double_params);
249 vec->double_params.push_back(this);
250 }
Param(const char *name, const char *comment, bool init)
◆ ~DoubleParam()
tesseract::DoubleParam::~DoubleParam |
( |
| ) |
|
|
inline |
Definition at line 251 of file params.h.
251{ ParamUtils::RemoveParam<DoubleParam>(this, params_vec_); }
◆ operator double()
tesseract::DoubleParam::operator double |
( |
| ) |
const |
|
inline |
◆ operator=()
void tesseract::DoubleParam::operator= |
( |
double |
value | ) |
|
|
inline |
◆ ResetFrom()
void tesseract::DoubleParam::ResetFrom |
( |
const ParamsVectors * |
vec | ) |
|
|
inline |
Definition at line 256 of file params.h.
256 {
257 for (int i = 0; i < vec->double_params.size(); ++i) {
258 if (strcmp(vec->double_params[i]->name_str(),
name_) == 0) {
259
260
261 value_ = *vec->double_params[i];
262 break;
263 }
264 }
265 }
◆ ResetToDefault()
void tesseract::DoubleParam::ResetToDefault |
( |
| ) |
|
|
inline |
Definition at line 255 of file params.h.
255{ value_ = default_; }
◆ set_value()
void tesseract::DoubleParam::set_value |
( |
double |
value | ) |
|
|
inline |
The documentation for this class was generated from the following file: