Bridge++  Ver. 2.0.2
parameterCheck.h
Go to the documentation of this file.
1 
14 
23 #ifndef PARAMETERCHECK_INCLUDED
24 #define PARAMETERCHECK_INCLUDED
25 
26 #include "commonParameters.h"
27 
28 #include "IO/bridgeIO.h"
29 using Bridge::vout;
30 
31 namespace ParameterCheck
32 {
33  typedef bool (*valid_double)(const double);
34  typedef bool (*valid_int)(const int);
35  typedef bool (*valid_double_vector)(const std::vector<double>&);
36  typedef bool (*valid_int_vector)(const std::vector<int>&);
37  typedef bool (*valid_string)(const std::string&);
38 
39  int non_negative(const int v);
40  int non_zero(const int v);
41  int non_zero(const double v);
42  int square_non_zero(const double v);
43  int non_NULL(const std::string v);
44 
45  int is_satisfied(const bool cond);
46 }
47 #endif
bridgeIO.h
ParameterCheck::non_NULL
int non_NULL(const std::string v)
Definition: parameterCheck.cpp:65
ParameterCheck::valid_int_vector
bool(* valid_int_vector)(const std::vector< int > &)
Definition: parameterCheck.h:36
ParameterCheck::valid_double_vector
bool(* valid_double_vector)(const std::vector< double > &)
Definition: parameterCheck.h:35
ParameterCheck::valid_int
bool(* valid_int)(const int)
Definition: parameterCheck.h:34
ParameterCheck::valid_string
bool(* valid_string)(const std::string &)
Definition: parameterCheck.h:37
ParameterCheck::non_negative
int non_negative(const int v)
Definition: parameterCheck.cpp:21
ParameterCheck::valid_double
bool(* valid_double)(const double)
Definition: parameterCheck.h:33
ParameterCheck::is_satisfied
int is_satisfied(const bool cond)
Definition: parameterCheck.cpp:76
ParameterCheck::square_non_zero
int square_non_zero(const double v)
Definition: parameterCheck.cpp:43
ParameterCheck
Definition: parameterCheck.cpp:16
ParameterCheck::non_zero
int non_zero(const double v)
Definition: parameterCheck.cpp:32
commonParameters.h
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512