ct_common
1.0.1
Common library for combinatorial testing
|
00001 //===----- ct_common/common/exp_s_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 string expressions w.r.t. a parameter 00010 // 00011 //===----------------------------------------------------------------------===// 00012 00013 #ifndef CT_COMMON_EXP_S_PARAM_H_ 00014 #define CT_COMMON_EXP_S_PARAM_H_ 00015 00016 #include <ct_common/common/utils.h> 00017 #include <ct_common/common/exp_s_atom.h> 00018 00019 namespace ct { 00020 namespace common { 00021 class DLL_EXPORT Exp_S_Param : public Exp_S_Atom { 00022 public: 00023 Exp_S_Param(void); 00024 Exp_S_Param(const Exp_S_Param &from); 00025 Exp_S_Param &operator = (const Exp_S_Param &right); 00026 virtual ~Exp_S_Param(void); 00027 00028 public: 00029 virtual std::string get_class_name(void) const; 00030 static std::string class_name(void); 00031 virtual void dump(std::ostream &os, const std::vector<boost::shared_ptr<ParamSpec> > ¶m_specs) const; 00032 00033 virtual void inner_touch_leaf_pids( const std::vector<boost::shared_ptr<ParamSpec> > ¶m_specs, 00034 std::set<std::size_t> &pids_to_touch) const; 00035 00036 public: 00037 void set_pid(std::size_t pid) { this->pid_ = pid; } 00038 std::size_t get_pid(void) const { return this->pid_; } 00039 00040 virtual EvalType_String Evaluate( const std::vector<boost::shared_ptr<ParamSpec> > ¶m_specs, 00041 const Assignment &assignment) const; 00042 00043 private: 00044 std::size_t pid_; 00045 }; 00046 } // namespace common 00047 } // namespace ct 00048 00049 #endif // CT_COMMON_EXP_S_PARAM_H_