tesseract  4.00.00dev
tesseract::IntParam Class Reference

#include <params.h>

Inheritance diagram for tesseract::IntParam:
tesseract::Param

Public Member Functions

 IntParam (inT32 value, const char *name, const char *comment, bool init, ParamsVectors *vec)
 
 ~IntParam ()
 
 operator inT32 () const
 
void operator= (inT32 value)
 
void set_value (inT32 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 142 of file params.h.

Constructor & Destructor Documentation

◆ IntParam()

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

Definition at line 144 of file params.h.

145  : Param(name, comment, init) {
146  value_ = value;
147  default_ = value;
148  params_vec_ = &(vec->int_params);
149  vec->int_params.push_back(this);
150  }
Param(const char *name, const char *comment, bool init)
Definition: params.h:131

◆ ~IntParam()

tesseract::IntParam::~IntParam ( )
inline

Definition at line 151 of file params.h.

151 { ParamUtils::RemoveParam<IntParam>(this, params_vec_); }

Member Function Documentation

◆ operator inT32()

tesseract::IntParam::operator inT32 ( ) const
inline

Definition at line 152 of file params.h.

152 { return value_; }

◆ operator=()

void tesseract::IntParam::operator= ( inT32  value)
inline

Definition at line 153 of file params.h.

153 { value_ = value; }

◆ ResetToDefault()

void tesseract::IntParam::ResetToDefault ( )
inline

Definition at line 155 of file params.h.

155  {
156  value_ = default_;
157  }

◆ set_value()

void tesseract::IntParam::set_value ( inT32  value)
inline

Definition at line 154 of file params.h.

154 { value_ = value; }

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