#include <params.h>
Definition at line 171 of file params.h.
◆ BoolParam()
tesseract::BoolParam::BoolParam |
( |
bool |
value, |
|
|
const char * |
name, |
|
|
const char * |
comment, |
|
|
bool |
init, |
|
|
ParamsVectors * |
vec |
|
) |
| |
|
inline |
Definition at line 173 of file params.h.
175 :
Param(name, comment, init) {
178 params_vec_ = &(vec->bool_params);
179 vec->bool_params.push_back(
this);
Param(const char *name, const char *comment, bool init)
◆ ~BoolParam()
tesseract::BoolParam::~BoolParam |
( |
| ) |
|
|
inline |
Definition at line 181 of file params.h.
181 { ParamUtils::RemoveParam<BoolParam>(
this, params_vec_); }
◆ operator bool()
tesseract::BoolParam::operator bool |
( |
| ) |
const |
|
inline |
◆ operator=()
void tesseract::BoolParam::operator= |
( |
bool |
value | ) |
|
|
inline |
◆ ResetFrom()
void tesseract::BoolParam::ResetFrom |
( |
const ParamsVectors * |
vec | ) |
|
|
inline |
Definition at line 186 of file params.h.
187 for (
int i = 0; i < vec->bool_params.size(); ++i) {
188 if (strcmp(vec->bool_params[i]->name_str(),
name_) == 0) {
191 value_ = *vec->bool_params[i];
◆ ResetToDefault()
void tesseract::BoolParam::ResetToDefault |
( |
| ) |
|
|
inline |
Definition at line 185 of file params.h.
185 { value_ = default_; }
◆ set_value()
void tesseract::BoolParam::set_value |
( |
bool |
value | ) |
|
|
inline |
The documentation for this class was generated from the following file: