COPASI API  4.16.103
CNormalLogicalItem.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/compareExpressions/CNormalLogicalItem.h,v $
3 // $Revision: 1.5 $
4 // $Name: $
5 // $Author: gauges $
6 // $Date: 2007/12/12 09:11:51 $
7 // End CVS Header
8 
9 // Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc. and EML Research, gGmbH.
11 // All rights reserved.
12 
13 #ifndef CNormalLogicalItem_H__
14 #define CNormalLogicalItem_H__
15 
16 #include <iostream>
17 #include <string>
18 
21 
23  {
24  public:
25  enum Type
26  {
29  EQ,
30  NE,
31  LT,
32  GT,
33  GE,
34  LE,
36  };
37 
38  protected:
42 
43  public:
46  virtual ~CNormalLogicalItem();
48  bool operator<(const CNormalLogicalItem& rhs) const;
49  bool operator==(const CNormalLogicalItem& rhs) const;
50  virtual CNormalBase * copy() const;
51  virtual std::string toString() const;
52  virtual bool simplify();
53 
55  const CNormalFraction& getLeft() const;
57  const CNormalFraction& getRight() const;
58 
59  bool setLeft(const CNormalFraction& left);
60  bool setRight(const CNormalFraction& right);
61 
62  Type getType() const;
63  void setType(Type type);
64  void negate();
65  };
66 
67 std::ostream& operator<<(std::ostream& os, const CNormalLogicalItem& item);
68 
69 #endif /* CNormalItemLogical_H__ */
virtual std::string toString() const
virtual CNormalBase * copy() const
bool setRight(const CNormalFraction &right)
CNormalFraction & getLeft()
CNormalFraction mLeft
bool setLeft(const CNormalFraction &left)
CNormalLogicalItem & operator=(const CNormalLogicalItem &src)
bool operator==(const CNormalLogicalItem &rhs) const
std::ostream & operator<<(std::ostream &os, const CNormalLogicalItem &item)
bool operator<(const CNormalLogicalItem &rhs) const
CNormalFraction mRight
CNormalFraction & getRight()