tesseract  4.0.0-1-g2a2b
params.h File Reference
#include <cstdio>
#include "genericvector.h"
#include "strngs.h"

Go to the source code of this file.

Classes

struct  tesseract::ParamsVectors
 
class  tesseract::ParamUtils
 
class  tesseract::Param
 
class  tesseract::IntParam
 
class  tesseract::BoolParam
 
class  tesseract::StringParam
 
class  tesseract::DoubleParam
 

Namespaces

 tesseract
 

Macros

#define INT_VAR_H(name, val, comment)   tesseract::IntParam name
 
#define BOOL_VAR_H(name, val, comment)   tesseract::BoolParam name
 
#define STRING_VAR_H(name, val, comment)   tesseract::StringParam name
 
#define double_VAR_H(name, val, comment)   tesseract::DoubleParam name
 
#define INT_VAR(name, val, comment)   tesseract::IntParam name(val,#name,comment,false,GlobalParams())
 
#define BOOL_VAR(name, val, comment)   tesseract::BoolParam name(val,#name,comment,false,GlobalParams())
 
#define STRING_VAR(name, val, comment)   tesseract::StringParam name(val,#name,comment,false,GlobalParams())
 
#define double_VAR(name, val, comment)   tesseract::DoubleParam name(val,#name,comment,false,GlobalParams())
 
#define INT_MEMBER(name, val, comment, vec)   name(val, #name, comment, false, vec)
 
#define BOOL_MEMBER(name, val, comment, vec)   name(val, #name, comment, false, vec)
 
#define STRING_MEMBER(name, val, comment, vec)   name(val, #name, comment, false, vec)
 
#define double_MEMBER(name, val, comment, vec)   name(val, #name, comment, false, vec)
 
#define INT_INIT_MEMBER(name, val, comment, vec)   name(val, #name, comment, true, vec)
 
#define BOOL_INIT_MEMBER(name, val, comment, vec)   name(val, #name, comment, true, vec)
 
#define STRING_INIT_MEMBER(name, val, comment, vec)   name(val, #name, comment, true, vec)
 
#define double_INIT_MEMBER(name, val, comment, vec)   name(val, #name, comment, true, vec)
 

Enumerations

enum  tesseract::SetParamConstraint { tesseract::SET_PARAM_CONSTRAINT_NONE, tesseract::SET_PARAM_CONSTRAINT_DEBUG_ONLY, tesseract::SET_PARAM_CONSTRAINT_NON_DEBUG_ONLY, tesseract::SET_PARAM_CONSTRAINT_NON_INIT_ONLY }
 

Functions

tesseract::ParamsVectorsGlobalParams ()
 

Macro Definition Documentation

◆ BOOL_INIT_MEMBER

#define BOOL_INIT_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, true, vec)

Definition at line 303 of file params.h.

◆ BOOL_MEMBER

#define BOOL_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, false, vec)

Definition at line 291 of file params.h.

◆ BOOL_VAR

#define BOOL_VAR (   name,
  val,
  comment 
)    tesseract::BoolParam name(val,#name,comment,false,GlobalParams())

Definition at line 279 of file params.h.

◆ BOOL_VAR_H

#define BOOL_VAR_H (   name,
  val,
  comment 
)    tesseract::BoolParam name

Definition at line 267 of file params.h.

◆ double_INIT_MEMBER

#define double_INIT_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, true, vec)

Definition at line 309 of file params.h.

◆ double_MEMBER

#define double_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, false, vec)

Definition at line 297 of file params.h.

◆ double_VAR

#define double_VAR (   name,
  val,
  comment 
)    tesseract::DoubleParam name(val,#name,comment,false,GlobalParams())

Definition at line 285 of file params.h.

◆ double_VAR_H

#define double_VAR_H (   name,
  val,
  comment 
)    tesseract::DoubleParam name

Definition at line 273 of file params.h.

◆ INT_INIT_MEMBER

#define INT_INIT_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, true, vec)

Definition at line 300 of file params.h.

◆ INT_MEMBER

#define INT_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, false, vec)

Definition at line 288 of file params.h.

◆ INT_VAR

#define INT_VAR (   name,
  val,
  comment 
)    tesseract::IntParam name(val,#name,comment,false,GlobalParams())

Definition at line 276 of file params.h.

◆ INT_VAR_H

#define INT_VAR_H (   name,
  val,
  comment 
)    tesseract::IntParam name

Definition at line 264 of file params.h.

◆ STRING_INIT_MEMBER

#define STRING_INIT_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, true, vec)

Definition at line 306 of file params.h.

◆ STRING_MEMBER

#define STRING_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, false, vec)

Definition at line 294 of file params.h.

◆ STRING_VAR

#define STRING_VAR (   name,
  val,
  comment 
)    tesseract::StringParam name(val,#name,comment,false,GlobalParams())

Definition at line 282 of file params.h.

◆ STRING_VAR_H

#define STRING_VAR_H (   name,
  val,
  comment 
)    tesseract::StringParam name

Definition at line 270 of file params.h.

Function Documentation

◆ GlobalParams()

tesseract::ParamsVectors* GlobalParams ( )

Definition at line 32 of file params.cpp.

32  {
33  static tesseract::ParamsVectors global_params = tesseract::ParamsVectors();
34  return &global_params;
35 }