ct_common  1.0.1
Common library for combinatorial testing
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Attributes
ct::common::Exp_A Class Reference

#include <exp_a.h>

Inheritance diagram for ct::common::Exp_A:
ct::common::Exp ct::common::TreeNode ct::common::Exp_A_Atom ct::common::Exp_A_Binary ct::common::Exp_A_Unary ct::common::Exp_A_CDouble ct::common::Exp_A_CInt ct::common::Exp_A_ConstraintCast ct::common::Exp_A_Param ct::common::Exp_A_Add ct::common::Exp_A_Div ct::common::Exp_A_Mod ct::common::Exp_A_Mult ct::common::Exp_A_Sub ct::common::Exp_A_Cast ct::common::Exp_A_Neg

List of all members.

Public Member Functions

 Exp_A (void)
 Exp_A (const Exp_A &from)
Exp_Aoperator= (const Exp_A &right)
virtual ~Exp_A (void)=0
virtual std::string get_class_name (void) const
EvalType_Double EvaluateDouble (const std::vector< boost::shared_ptr< ParamSpec > > &param_specs, const Assignment &assignment) const
EvalType_Int EvaluateInt (const std::vector< boost::shared_ptr< ParamSpec > > &param_specs, const Assignment &assignment) const
eEXP_A_TYPE get_type (void) const
void set_type (eEXP_A_TYPE type)

Static Public Member Functions

static std::string class_name (void)

Protected Attributes

eEXP_A_TYPE type_

Detailed Description

Base class of arithmetic expressions

Definition at line 54 of file exp_a.h.


Constructor & Destructor Documentation

Exp_A::Exp_A ( void  )

Definition at line 17 of file exp_a.cpp.

Exp_A::Exp_A ( const Exp_A from)

Definition at line 21 of file exp_a.cpp.

Exp_A::~Exp_A ( void  ) [pure virtual]

Definition at line 31 of file exp_a.cpp.


Member Function Documentation

std::string Exp_A::class_name ( void  ) [static]
EvalType_Double Exp_A::EvaluateDouble ( const std::vector< boost::shared_ptr< ParamSpec > > &  param_specs,
const Assignment assignment 
) const

Evaluate the double value of the expression. Checks whether the expression is of double type.

Definition at line 42 of file exp_a.cpp.

EvalType_Int Exp_A::EvaluateInt ( const std::vector< boost::shared_ptr< ParamSpec > > &  param_specs,
const Assignment assignment 
) const

Evaluate the int value of the expression. Checks whether the expression is of int type.

Definition at line 50 of file exp_a.cpp.

std::string Exp_A::get_class_name ( void  ) const [virtual]
eEXP_A_TYPE ct::common::Exp_A::get_type ( void  ) const [inline]

Definition at line 75 of file exp_a.h.

Exp_A & Exp_A::operator= ( const Exp_A right)

Definition at line 25 of file exp_a.cpp.

void ct::common::Exp_A::set_type ( eEXP_A_TYPE  type) [inline]

Definition at line 76 of file exp_a.h.


Member Data Documentation

whether the expression is int or double

Definition at line 87 of file exp_a.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines