ct_common
1.0.1
Common library for combinatorial testing
|
#include <constraint_l_unary.h>
Public Member Functions | |
Constraint_L_Unary (void) | |
Constraint_L_Unary (const Constraint_L_Unary &from) | |
Constraint_L_Unary & | operator= (const Constraint_L_Unary &right) |
virtual | ~Constraint_L_Unary (void) |
virtual std::string | get_class_name (void) const |
virtual void | dump (std::ostream &os, const std::vector< boost::shared_ptr< ParamSpec > > ¶m_specs) const |
virtual std::string | get_op_token (void) const =0 |
boost::shared_ptr< const Constraint > | get_oprd (void) const |
void | set_oprd (const boost::shared_ptr< TreeNode > &oprd) |
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) |
Base class for unary logical constraints
Definition at line 25 of file constraint_l_unary.h.
Definition at line 17 of file constraint_l_unary.cpp.
Constraint_L_Unary::Constraint_L_Unary | ( | const Constraint_L_Unary & | from | ) |
Definition at line 22 of file constraint_l_unary.cpp.
Constraint_L_Unary::~Constraint_L_Unary | ( | void | ) | [virtual] |
Definition at line 31 of file constraint_l_unary.cpp.
std::string Constraint_L_Unary::class_name | ( | void | ) | [static] |
TODO: replace by typeid
Reimplemented from ct::common::Constraint_L.
Reimplemented in ct::common::Constraint_L_Not.
Definition at line 38 of file constraint_l_unary.cpp.
void Constraint_L_Unary::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 49 of file constraint_l_unary.cpp.
EvalType_Bool Constraint_L_Unary::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 42 of file constraint_l_unary.cpp.
std::string Constraint_L_Unary::get_class_name | ( | void | ) | const [virtual] |
TODO: replace by typeid
Reimplemented from ct::common::Constraint_L.
Reimplemented in ct::common::Constraint_L_Not.
Definition at line 34 of file constraint_l_unary.cpp.
virtual std::string ct::common::Constraint_L_Unary::get_op_token | ( | void | ) | const [pure virtual] |
Get the corresponding string token
Implemented in ct::common::Constraint_L_Not.
boost::shared_ptr<const Constraint> ct::common::Constraint_L_Unary::get_oprd | ( | void | ) | const [inline] |
Definition at line 38 of file constraint_l_unary.h.
Constraint_L_Unary & Constraint_L_Unary::operator= | ( | const Constraint_L_Unary & | right | ) |
Definition at line 26 of file constraint_l_unary.cpp.
void ct::common::Constraint_L_Unary::set_oprd | ( | const boost::shared_ptr< TreeNode > & | oprd | ) | [inline] |
Definition at line 39 of file constraint_l_unary.h.