ct_common  1.0.1
Common library for combinatorial testing
src/ct_common/common/constraint_l_xor.h
Go to the documentation of this file.
00001 //===----- ct_common/common/constraint_l_xor.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 logical constraint "^^" (XOR)
00010 //
00011 //===----------------------------------------------------------------------===//
00012 
00013 #ifndef CT_COMMON_CONSTRAINT_L_XOR_H_
00014 #define CT_COMMON_CONSTRAINT_L_XOR_H_
00015 
00016 #include <ct_common/common/utils.h>
00017 #include <ct_common/common/constraint_l_binary.h>
00018 
00019 namespace ct {
00020 namespace common {
00024 class DLL_EXPORT Constraint_L_Xor : public Constraint_L_Binary {
00025 public:
00026   Constraint_L_Xor(void);
00027   Constraint_L_Xor(const Constraint_L_Xor &from);
00028   Constraint_L_Xor &operator = (const Constraint_L_Xor &right);
00029   virtual ~Constraint_L_Xor(void);
00030 
00031   virtual std::string get_class_name(void) const;
00032   static std::string class_name(void);
00033   virtual std::string get_op_token(void) const;
00034 
00035 private:
00036   virtual EvalType_Bool evaluate_func(EvalType_Bool val_l, EvalType_Bool val_r) const;
00037 };
00038 }  // namespace common
00039 }  // namespace ct
00040 
00041 #endif  // CT_COMMON_CONSTRAINT_L_XOR_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines