tesseract  5.0.0-alpha-619-ge9db
tesseract::Param Class Reference

#include <params.h>

Inheritance diagram for tesseract::Param:
tesseract::BoolParam tesseract::DoubleParam tesseract::IntParam tesseract::StringParam

Public Member Functions

 ~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
 

Protected Member Functions

 Param (const char *name, const char *comment, bool init)
 

Protected Attributes

const char * name_
 
const char * info_
 
bool init_
 
bool debug_
 

Detailed Description

Definition at line 123 of file params.h.

Constructor & Destructor Documentation

◆ ~Param()

tesseract::Param::~Param ( )
default

◆ Param()

tesseract::Param::Param ( const char *  name,
const char *  comment,
bool  init 
)
inlineprotected

Definition at line 141 of file params.h.

142  : Param(name, comment, init) {
143  value_ = value;
144  default_ = value;

Member Function Documentation

◆ constraint_ok()

bool tesseract::Param::constraint_ok ( SetParamConstraint  constraint) const
inline

Definition at line 131 of file params.h.

138  : public Param {

◆ info_str()

const char* tesseract::Param::info_str ( ) const
inline

Definition at line 128 of file params.h.

128 : name_(name), info_(comment), init_(init) {

◆ is_debug()

bool tesseract::Param::is_debug ( ) const
inline

Definition at line 130 of file params.h.

138 : public Param {

◆ is_init()

bool tesseract::Param::is_init ( ) const
inline

Definition at line 129 of file params.h.

138 : public Param {

◆ name_str()

const char* tesseract::Param::name_str ( ) const
inline

Definition at line 127 of file params.h.

128 : name_(name), info_(comment), init_(init) {

Member Data Documentation

◆ debug_

bool tesseract::Param::debug_
protected

Definition at line 149 of file params.h.

◆ info_

const char* tesseract::Param::info_
protected

Definition at line 147 of file params.h.

◆ init_

bool tesseract::Param::init_
protected

Definition at line 148 of file params.h.

◆ name_

const char* tesseract::Param::name_
protected

Definition at line 146 of file params.h.


The documentation for this class was generated from the following file:
tesseract::Param::Param
Param(const char *name, const char *comment, bool init)
Definition: params.h:141
tesseract::Param::name_
const char * name_
Definition: params.h:146
tesseract::Param::info_
const char * info_
Definition: params.h:147
tesseract::Param::init_
bool init_
Definition: params.h:148