ct_common  1.0.1
Common library for combinatorial testing
src/ct_common/common/exp_a_neg.cpp
Go to the documentation of this file.
00001 //===----- ct_common/common/exp_a_neg.cpp -----------------------*- 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 file contains the function definitions of class Exp_A_Neg
00010 //
00011 //===----------------------------------------------------------------------===//
00012 
00013 #include <ct_common/common/exp_a_neg.h>
00014 
00015 using namespace ct::common;
00016 
00017 Exp_A_Neg::Exp_A_Neg(void)
00018   : Exp_A_Unary() {
00019 }
00020 
00021 Exp_A_Neg::Exp_A_Neg(const Exp_A_Neg &from)
00022   : Exp_A_Unary(from) {
00023 }
00024 
00025 Exp_A_Neg& Exp_A_Neg::operator = (const Exp_A_Neg &right) {
00026   Exp_A_Unary::operator=(right);
00027   return *this;
00028 }
00029 
00030 Exp_A_Neg::~Exp_A_Neg(void) {
00031 }
00032 
00033 std::string Exp_A_Neg::get_class_name(void) const {
00034   return Exp_A_Neg::class_name();
00035 }
00036 
00037 std::string Exp_A_Neg::class_name(void) {
00038   return "Exp_A_Neg";
00039 }
00040 
00041 double Exp_A_Neg::evaluate_double(double val) const {
00042   return -val;
00043 }
00044 
00045 int Exp_A_Neg::evaluate_int(int val) const {
00046   return -val;
00047 }
00048 
00049 std::string Exp_A_Neg::get_op_token(void) const {
00050   return "-";
00051 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines