ct_common
1.0.1
Common library for combinatorial testing
|
00001 //===----- ct_common/common/constraint_s_ne.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 Constraint_S_NE 00010 // 00011 //===----------------------------------------------------------------------===// 00012 00013 #include <cstring> 00014 #include <ct_common/common/constraint_s_ne.h> 00015 00016 using namespace ct::common; 00017 00018 Constraint_S_NE::Constraint_S_NE(void) 00019 : Constraint_S_Binary() { 00020 } 00021 00022 Constraint_S_NE::Constraint_S_NE(const Constraint_S_NE &from) 00023 : Constraint_S_Binary(from) { 00024 } 00025 00026 Constraint_S_NE &Constraint_S_NE::operator = ( 00027 const Constraint_S_NE &right) { 00028 Constraint_S_Binary::operator=(right); 00029 return *this; 00030 } 00031 00032 Constraint_S_NE::~Constraint_S_NE(void) { 00033 } 00034 00035 std::string Constraint_S_NE::get_class_name(void) const { 00036 return Constraint_S_NE::class_name(); 00037 } 00038 00039 std::string Constraint_S_NE::class_name(void) { 00040 return "Constraint_S_NE"; 00041 } 00042 00043 bool Constraint_S_NE::evaluate_func(const std::string &val_1, const std::string &val_2) const { 00044 return val_1 != val_2; 00045 } 00046 00047 std::string Constraint_S_NE::get_op_token(void) const { 00048 return "!="; 00049 }