tesseract  3.03
tesseract::IntParam Class Reference

#include <params.h>

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

List of all members.

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 ()

Detailed Description

Definition at line 143 of file params.h.


Constructor & Destructor Documentation

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

Definition at line 145 of file params.h.

                                : Param(name, comment, init) {
    value_ = value;
    default_ = value;
    params_vec_ = &(vec->int_params);
    vec->int_params.push_back(this);
  }

Definition at line 152 of file params.h.

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

Member Function Documentation

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

Definition at line 153 of file params.h.

{ return value_; }
void tesseract::IntParam::operator= ( inT32  value) [inline]

Definition at line 154 of file params.h.

{ value_ = value; }

Definition at line 156 of file params.h.

                        {
    value_ = default_;
  }
void tesseract::IntParam::set_value ( inT32  value) [inline]

Definition at line 155 of file params.h.

{ value_ = value; }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines