ct_common  1.0.1
Common library for combinatorial testing
src/ct_common/common/exp_a_cast.h
Go to the documentation of this file.
00001 //===----- ct_common/common/exp_a_cast.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 casting expressions
00010 //
00011 //===----------------------------------------------------------------------===//
00012 
00013 #ifndef CT_COMMON_EXP_A_CAST_H_
00014 #define CT_COMMON_EXP_A_CAST_H_
00015 
00016 #include <ct_common/common/utils.h>
00017 #include <ct_common/common/exp_a_unary.h>
00018 
00019 namespace ct {
00020 namespace common {
00024 class DLL_EXPORT Exp_A_Cast : public Exp_A_Unary {
00025 public:
00026   Exp_A_Cast(void);
00027   Exp_A_Cast(const Exp_A_Cast &from);
00028   Exp_A_Cast &operator = (const Exp_A_Cast &right);
00029   virtual ~Exp_A_Cast(void);
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   virtual std::string get_op_token(void) const;
00036 
00037 private:
00038   virtual double evaluate_double(double val) const;
00039   virtual int evaluate_int(int val) const;
00040 };
00041 }  // namespace common
00042 }  // namespace ct
00043 
00044 #endif  // CT_COMMON_EXP_A_CAST_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines