COPASI API  4.16.103
CNormalItem.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/compareExpressions/CNormalItem.h,v $
3 // $Revision: 1.4 $
4 // $Name: $
5 // $Author: gauges $
6 // $Date: 2007/12/12 09:11:50 $
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 COPASI_CNormalItem_H__
14 #define COPASI_CNormalItem_H__
15 
16 #include <string>
18 
19 /**
20  * The class for items used in CNormal
21  */
22 class CNormalItem : public CNormalBase
23  {
24  public:
25  /**
26  * Enumeration of possible item types.
27  */
28  enum Type
29  {
32  };
33 
34  std::string mName;
36 
37  /**
38  * Default constructor
39  */
40  CNormalItem();
41 
42  /**
43  * Data constructor
44  */
45  CNormalItem(const std::string& name, const Type& type);
46 
47  virtual CNormalBase * copy() const;
48 
49  /**
50  * Copy contructor
51  */
52  CNormalItem(const CNormalItem& src);
53 
54  /**
55  * Assignment operator
56  */
57  CNormalItem& operator=(const CNormalItem& src);
58 
59  /**
60  * Set the name of this item
61  * @return true.
62  */
63  bool setName(const std::string& name);
64 
65  /**
66  * Set the type of this item.
67  * @return true.
68  */
69  bool setType(const Type& type);
70 
71  /**
72  * Retrieve the name of this item.
73  * @return mName
74  */
75  const std::string getName() const;
76 
77  /**
78  * Retrieve the type of this item.
79  * @return mType
80  */
81  const Type& getType() const;
82 
83  /**
84  * Examine equality of two items.
85  * @return bool.
86  */
87  bool operator==(const CNormalItem & rhs) const;
88 
89  /**
90  * Examine inequality of two item.
91  * @return bool.
92  */
93  bool operator<(const CNormalItem & rhs) const;
94 
95  virtual std::string toString() const;
96 
97  virtual bool simplify(){return true;};
98 
99  friend std::ostream & operator<< (std::ostream &os,
100  const CNormalItem & d);
101  };
102 
103 #endif // COPASI_CNormalItem_H__
bool setType(const Type &type)
Definition: CNormalItem.cpp:72
bool setName(const std::string &name)
Definition: CNormalItem.cpp:62
bool operator<(const CNormalItem &rhs) const
std::string mName
Definition: CNormalItem.h:34
const Type & getType() const
Definition: CNormalItem.cpp:91
virtual bool simplify()
Definition: CNormalItem.h:97
friend std::ostream & operator<<(std::ostream &os, const CNormalItem &d)
CNormalItem & operator=(const CNormalItem &src)
Definition: CNormalItem.cpp:51
virtual std::string toString() const
const std::string getName() const
Definition: CNormalItem.cpp:82
virtual CNormalBase * copy() const
bool operator==(const CNormalItem &rhs) const