tesseract  3.03
tesseract::BoolParam Class Reference

#include <params.h>

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

List of all members.

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

Detailed Description

Definition at line 167 of file params.h.


Constructor & Destructor Documentation

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

Definition at line 169 of file params.h.

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

Definition at line 176 of file params.h.

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

Member Function Documentation

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

Definition at line 177 of file params.h.

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

Definition at line 178 of file params.h.

{ value_ = value; }

Definition at line 180 of file params.h.

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

Definition at line 179 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