COPASI API  4.16.103
CNormalFunction.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/compareExpressions/CNormalFunction.h,v $
3 // $Revision: 1.4 $
4 // $Name: $
5 // $Author: gauges $
6 // $Date: 2008/04/22 11:06:48 $
7 // End CVS Header
8 
9 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
11 // and The University of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc. and EML Research, gGmbH.
16 // All rights reserved.
17 
18 #ifndef COPASI_CNormalFunction_H__
19 #define COPASI_CNormalFunction_H__
20 
21 #include <iostream>
22 #include <string>
23 
25 
26 class CNormalFraction;
27 
29  {
30  public:
31  enum Type
32  {
33  LOG = 0,
35  EXP,
36  SIN,
37  COS,
38  TAN,
39 #ifdef SEC
40 # undef SEC
41 #endif
42  SEC,
43  CSC,
44  COT,
64  ABS,
69  };
70 
71  protected:
73 
75 
76  public:
77  static const char* NAMES[];
78 
80  CNormalFunction(const CNormalFunction& src);
81  virtual ~CNormalFunction();
82 
84  bool operator==(const CNormalFunction& src) const;
85  bool operator<(const CNormalFunction& src) const;
86 
87  virtual CNormalBase * copy() const;
88  virtual bool simplify();
89 
90  virtual std::string toString() const;
91 
92  Type getType() const;
93  void setType(Type type);
94 
96  const CNormalFraction& getFraction() const;
97 
98  void setFraction(const CNormalFraction& frac);
99  };
100 
101 std::ostream& operator<<(std::ostream& os, const CNormalFunction& fun);
102 
103 #endif /* COPASI_CNormalFunction_H__ */
void setFraction(const CNormalFraction &frac)
virtual CNormalBase * copy() const
void setType(Type type)
bool operator<(const CNormalFunction &src) const
virtual bool simplify()
virtual std::string toString() const
static const char * NAMES[]
std::ostream & operator<<(std::ostream &os, const CNormalFunction &fun)
bool operator==(const CNormalFunction &src) const
virtual ~CNormalFunction()
CNormalFraction * mpFraction
CNormalFunction & operator=(const CNormalFunction &src)
Type getType() const
CNormalFraction & getFraction()