ct_common
1.0.1
Common library for combinatorial testing
|
#include <constraint_l_cbool.h>
Public Member Functions | |
Constraint_L_CBool (void) | |
Constraint_L_CBool (const Constraint_L_CBool &from) | |
virtual | ~Constraint_L_CBool (void) |
Constraint_L_CBool & | operator= (const Constraint_L_CBool &right) |
virtual std::string | get_class_name (void) const |
void | set_value (bool val) |
bool | get_value (void) const |
virtual const std::string & | get_str_value (void) const |
virtual void | dump (std::ostream &os, const std::vector< boost::shared_ptr< ParamSpec > > ¶m_specs) const |
virtual EvalType_Bool | Evaluate (const std::vector< boost::shared_ptr< ParamSpec > > ¶m_specs, const Assignment &assignment) const |
Static Public Member Functions | |
static std::string | class_name (void) |
The class for constant boolean atom constraints
Definition at line 23 of file constraint_l_cbool.h.
Definition at line 17 of file constraint_l_cbool.cpp.
Constraint_L_CBool::Constraint_L_CBool | ( | const Constraint_L_CBool & | from | ) |
Definition at line 21 of file constraint_l_cbool.cpp.
Constraint_L_CBool::~Constraint_L_CBool | ( | void | ) | [virtual] |
Definition at line 25 of file constraint_l_cbool.cpp.
std::string Constraint_L_CBool::class_name | ( | void | ) | [static] |
TODO: replace by typeid
Reimplemented from ct::common::Constraint_L_Atom.
Definition at line 38 of file constraint_l_cbool.cpp.
void Constraint_L_CBool::dump | ( | std::ostream & | os, |
const std::vector< boost::shared_ptr< ParamSpec > > & | param_specs | ||
) | const [virtual] |
Print the tree node to a given output stream
Implements ct::common::TreeNode.
Definition at line 56 of file constraint_l_cbool.cpp.
EvalType_Bool Constraint_L_CBool::Evaluate | ( | const std::vector< boost::shared_ptr< ParamSpec > > & | param_specs, |
const Assignment & | assignment | ||
) | const [virtual] |
Whether the constraint is satisfied
Implements ct::common::Constraint.
Definition at line 51 of file constraint_l_cbool.cpp.
std::string Constraint_L_CBool::get_class_name | ( | void | ) | const [virtual] |
TODO: replace by typeid
Reimplemented from ct::common::Constraint_L_Atom.
Definition at line 34 of file constraint_l_cbool.cpp.
const std::string & Constraint_L_CBool::get_str_value | ( | void | ) | const [virtual] |
get the string value: true/false
Reimplemented from ct::common::TreeNode.
Definition at line 42 of file constraint_l_cbool.cpp.
bool ct::common::Constraint_L_CBool::get_value | ( | void | ) | const [inline] |
Definition at line 35 of file constraint_l_cbool.h.
Constraint_L_CBool & Constraint_L_CBool::operator= | ( | const Constraint_L_CBool & | right | ) |
Definition at line 28 of file constraint_l_cbool.cpp.
void ct::common::Constraint_L_CBool::set_value | ( | bool | val | ) | [inline] |
Definition at line 34 of file constraint_l_cbool.h.