tesseract  4.0.0-1-g2a2b
tesseract::BoolParam Class Reference

#include <params.h>

Inheritance diagram for tesseract::BoolParam:
tesseract::Param

Public Member Functions

 BoolParam (bool value, const char *name, const char *comment, bool init, ParamsVectors *vec)
 
 ~BoolParam ()
 
 operator BOOL8 () const
 
void operator= (BOOL8 value)
 
void set_value (BOOL8 value)
 
void ResetToDefault ()
 
- Public Member Functions inherited from tesseract::Param
 ~Param ()=default
 
const char * name_str () const
 
const char * info_str () const
 
bool is_init () const
 
bool is_debug () const
 
bool constraint_ok (SetParamConstraint constraint) const
 

Additional Inherited Members

- Protected Member Functions inherited from tesseract::Param
 Param (const char *name, const char *comment, bool init)
 
- Protected Attributes inherited from tesseract::Param
const char * name_
 
const char * info_
 
bool init_
 
bool debug_
 

Detailed Description

Definition at line 166 of file params.h.

Constructor & Destructor Documentation

◆ BoolParam()

tesseract::BoolParam::BoolParam ( bool  value,
const char *  name,
const char *  comment,
bool  init,
ParamsVectors vec 
)
inline

Definition at line 168 of file params.h.

169  : Param(name, comment, init) {
170  value_ = value;
171  default_ = value;
172  params_vec_ = &(vec->bool_params);
173  vec->bool_params.push_back(this);
174  }
Param(const char *name, const char *comment, bool init)
Definition: params.h:131

◆ ~BoolParam()

tesseract::BoolParam::~BoolParam ( )
inline

Definition at line 175 of file params.h.

175 { ParamUtils::RemoveParam<BoolParam>(this, params_vec_); }

Member Function Documentation

◆ operator BOOL8()

tesseract::BoolParam::operator BOOL8 ( ) const
inline

Definition at line 176 of file params.h.

176 { return value_; }

◆ operator=()

void tesseract::BoolParam::operator= ( BOOL8  value)
inline

Definition at line 177 of file params.h.

177 { value_ = value; }

◆ ResetToDefault()

void tesseract::BoolParam::ResetToDefault ( )
inline

Definition at line 179 of file params.h.

179  {
180  value_ = default_;
181  }

◆ set_value()

void tesseract::BoolParam::set_value ( BOOL8  value)
inline

Definition at line 178 of file params.h.

178 { value_ = value; }

The documentation for this class was generated from the following file: