All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
tesseract::DoubleParam Class Reference

#include <params.h>

Inheritance diagram for tesseract::DoubleParam:
tesseract::Param

Public Member Functions

 DoubleParam (double value, const char *name, const char *comment, bool init, ParamsVectors *vec)
 
 ~DoubleParam ()
 
 operator double () const
 
void operator= (double value)
 
void set_value (double value)
 
void ResetToDefault ()
 
- Public Member Functions inherited from tesseract::Param
 ~Param ()
 
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 220 of file params.h.

Constructor & Destructor Documentation

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

Definition at line 222 of file params.h.

223  : Param(name, comment, init) {
224  value_ = value;
225  default_ = value;
226  params_vec_ = &(vec->double_params);
227  vec->double_params.push_back(this);
228  }
name_table name
Param(const char *name, const char *comment, bool init)
Definition: params.h:132
tesseract::DoubleParam::~DoubleParam ( )
inline

Definition at line 229 of file params.h.

229 { ParamUtils::RemoveParam<DoubleParam>(this, params_vec_); }

Member Function Documentation

tesseract::DoubleParam::operator double ( ) const
inline

Definition at line 230 of file params.h.

230 { return value_; }
void tesseract::DoubleParam::operator= ( double  value)
inline

Definition at line 231 of file params.h.

231 { value_ = value; }
void tesseract::DoubleParam::ResetToDefault ( )
inline

Definition at line 233 of file params.h.

233  {
234  value_ = default_;
235  }
void tesseract::DoubleParam::set_value ( double  value)
inline

Definition at line 232 of file params.h.

232 { value_ = value; }

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