ct_common
1.0.1
Common library for combinatorial testing
|
#include <ct_common/common/utils.h>
#include <ct_common/common/exp.h>
#include <ct_common/common/paramspec.h>
#include <boost/shared_ptr.hpp>
#include <ct_common/common/eval_type_int.h>
#include <ct_common/common/eval_type_double.h>
#include <ct_common/common/assignment.h>
Go to the source code of this file.
Classes | |
class | ct::common::Exp_A |
Namespaces | |
namespace | ct |
namespace | ct::common |
Defines | |
#define | GET_EXP_VAL(type, identifier, exp, param_specs, assignment) |
Enumerations | |
enum | ct::common::eEXP_A_TYPE { ct::common::EAT_INT, ct::common::EAT_DOUBLE } |
#define GET_EXP_VAL | ( | type, | |
identifier, | |||
exp, | |||
param_specs, | |||
assignment | |||
) |
type identifier; \ switch (exp->get_type()) { \ case EAT_INT: \ identifier = exp->EvaluateInt(param_specs, assignment); \ break; \ case EAT_DOUBLE: \ identifier = exp->EvaluateDouble(param_specs, assignment); \ break; \ default: \ CT_EXCEPTION("unrecognized expression type when evaluating"); \ }
Utility macro for getting the resulting value of some arithmetic expression, which is converted into the given type