ct_common  1.0.1
Common library for combinatorial testing
src/ct_common/common/constraint_l_param.h
Go to the documentation of this file.
00001 //===----- ct_common/common/constraint_l_param.h ----------------*- C++ -*-===//
00002 //
00003 //                      The ct_common Library
00004 //
00005 // This file is distributed under the MIT license. See LICENSE for details.
00006 //
00007 //===----------------------------------------------------------------------===//
00008 //
00009 // This header file contains the class for constraints w.r.t.
00010 // a boolean parameter
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef CT_COMMON_CONSTRAINT_L_PARAM_H_
00015 #define CT_COMMON_CONSTRAINT_L_PARAM_H_
00016 
00017 #include <ct_common/common/constraint_l_atom.h>
00018 
00019 namespace ct {
00020 namespace common {
00024 class Constraint_L_Param : public Constraint_L_Atom {
00025 public:
00026   Constraint_L_Param(void);
00027   Constraint_L_Param(const Constraint_L_Param &from);
00028   virtual ~Constraint_L_Param(void);
00029   Constraint_L_Param &operator = (const Constraint_L_Param &right);
00030   
00031 public:
00032   virtual std::string get_class_name(void) const;
00033   static std::string class_name(void);
00034   virtual void dump(std::ostream &os, const std::vector<boost::shared_ptr<ParamSpec> > &param_specs) const;
00035 
00036   void set_pid(std::size_t pid) { this->pid_ = pid; }
00037   std::size_t get_pid(void) const { return this->pid_; }
00038   
00039   virtual void inner_touch_leaf_pids( const std::vector<boost::shared_ptr<ParamSpec> > &param_specs,
00040                                       std::set<std::size_t> &pids_to_touch) const;
00041 
00042 public:
00043   virtual EvalType_Bool Evaluate( const std::vector<boost::shared_ptr<ParamSpec> > &param_specs,
00044                                   const Assignment &assignment) const;
00045 
00046 private:
00047   std::size_t pid_;  
00048 };
00049 }  // namespace common
00050 }  // namespace ct
00051 
00052 #endif  // CT_COMMON_CONSTRAINT_L_PARAM_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines