#include <CbcGenParam.hpp>
Inheritance diagram for CbcGenParam:
Adds parameter type codes and push/pull functions to the generic parameter object.
Definition at line 34 of file CbcGenParam.hpp.
Enumeration for cbc-generic parameters.
These are parameters that control the operation of the cbc-generic main program by operating on a CbcGenCtlBlk object. CBCGEN_FIRSTPARAM and CBCGEN_LASTPARM are markers to allow convenient separation of parameter groups.
Definition at line 49 of file CbcGenParam.hpp.
CbcGenParam::CbcGenParam | ( | ) |
Default constructor.
CbcGenParam::CbcGenParam | ( | CbcGenParamCode | code, | |
std::string | name, | |||
std::string | help, | |||
double | lower, | |||
double | upper, | |||
double | dflt = 0.0 , |
|||
bool | display = true | |||
) |
Constructor for a parameter with a double value.
The default value is 0.0. Be careful to clearly indicate that lower
and upper
are real (double) values to distinguish this constructor from the constructor for an integer parameter.
CbcGenParam::CbcGenParam | ( | CbcGenParamCode | code, | |
std::string | name, | |||
std::string | help, | |||
int | lower, | |||
int | upper, | |||
int | dflt = 0 , |
|||
bool | display = true | |||
) |
Constructor for a parameter with an integer value.
The default value is 0.
CbcGenParam::CbcGenParam | ( | CbcGenParamCode | code, | |
std::string | name, | |||
std::string | help, | |||
std::string | firstValue, | |||
int | dflt, | |||
bool | display = true | |||
) |
Constructor for a parameter with keyword values.
The string supplied as firstValue
becomes the first keyword. Additional keywords can be added using appendKwd(). Keywords are numbered from zero. It's necessary to specify both the first keyword (firstValue
) and the default keyword index (dflt
) in order to distinguish this constructor from the string and action parameter constructors.
CbcGenParam::CbcGenParam | ( | CbcGenParamCode | code, | |
std::string | name, | |||
std::string | help, | |||
std::string | dflt, | |||
bool | display = true | |||
) |
Constructor for a string parameter.
The default string value must be specified explicitly to distinguish a string constructor from an action parameter constructor.
CbcGenParam::CbcGenParam | ( | CbcGenParamCode | code, | |
std::string | name, | |||
std::string | help, | |||
bool | display = true | |||
) |
Constructor for an action parameter.
CbcGenParam::CbcGenParam | ( | const CbcGenParam & | orig | ) |
Copy constructor.
CbcGenParam::~CbcGenParam | ( | ) |
Destructor.
CbcGenParam* CbcGenParam::clone | ( | ) | [virtual] |
CbcGenParam& CbcGenParam::operator= | ( | const CbcGenParam & | rhs | ) |
Assignment.
CbcGenParamCode CbcGenParam::paramCode | ( | ) | const [inline] |
void CbcGenParam::setParamCode | ( | CbcGenParamCode | code | ) | [inline] |
CbcGenCtlBlk* CbcGenParam::obj | ( | ) | const [inline] |
void CbcGenParam::setObj | ( | CbcGenCtlBlk * | obj | ) | [inline] |
CbcGenParamCode CbcGenParam::paramCode_ [private] |
CbcGenCtlBlk* CbcGenParam::obj_ [private] |