tesseract  5.0.0-alpha-619-ge9db
params.h File Reference
#include <tesseract/genericvector.h>
#include <tesseract/strngs.h>
#include <cstdio>

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 327 of file params.h.

◆ BOOL_MEMBER

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

Definition at line 315 of file params.h.

◆ BOOL_VAR

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

Definition at line 303 of file params.h.

◆ BOOL_VAR_H

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

Definition at line 294 of file params.h.

◆ double_INIT_MEMBER

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

Definition at line 333 of file params.h.

◆ double_MEMBER

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

Definition at line 321 of file params.h.

◆ double_VAR

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

Definition at line 309 of file params.h.

◆ double_VAR_H

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

Definition at line 298 of file params.h.

◆ INT_INIT_MEMBER

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

Definition at line 324 of file params.h.

◆ INT_MEMBER

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

Definition at line 312 of file params.h.

◆ INT_VAR

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

Definition at line 300 of file params.h.

◆ INT_VAR_H

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

Definition at line 292 of file params.h.

◆ STRING_INIT_MEMBER

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

Definition at line 330 of file params.h.

◆ STRING_MEMBER

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

Definition at line 318 of file params.h.

◆ STRING_VAR

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

Definition at line 306 of file params.h.

◆ STRING_VAR_H

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

Definition at line 296 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 }
tesseract::ParamsVectors
Definition: params.h:56