tesseract  5.0.0-alpha-619-ge9db
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 ()
 
void ResetFrom (const ParamsVectors *vec)
 
- 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 254 of file params.h.

Constructor & Destructor Documentation

◆ DoubleParam()

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

Definition at line 256 of file params.h.

256  {
257  if (strcmp(vec->double_params[i]->name_str(), name_) == 0) {
258  // printf("overriding param %s=%f by =%f\n", name_, value_,
259  // *vec->double_params[i]);
260  value_ = *vec->double_params[i];
261  break;
262  }
263  }

◆ ~DoubleParam()

tesseract::DoubleParam::~DoubleParam ( )
inline

Definition at line 264 of file params.h.

266 :
267  double value_;

Member Function Documentation

◆ operator double()

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

Definition at line 265 of file params.h.

266 :
267  double value_;

◆ operator=()

void tesseract::DoubleParam::operator= ( double  value)
inline

Definition at line 266 of file params.h.

266 :
267  double value_;

◆ ResetFrom()

void tesseract::DoubleParam::ResetFrom ( const ParamsVectors vec)
inline

Definition at line 269 of file params.h.

◆ ResetToDefault()

void tesseract::DoubleParam::ResetToDefault ( )
inline

Definition at line 268 of file params.h.

◆ set_value()

void tesseract::DoubleParam::set_value ( double  value)
inline

Definition at line 267 of file params.h.


The documentation for this class was generated from the following file:
tesseract::Param::name_
const char * name_
Definition: params.h:146