COPASI API  4.16.103
Public Member Functions | List of all members
CNormalBase Class Referenceabstract

#include <CNormalBase.h>

Inheritance diagram for CNormalBase:
Inheritance graph
[legend]

Public Member Functions

virtual bool areEqual (const CNormalBase &rhs) const
 
virtual CNormalBasecopy () const =0
 
virtual bool simplify ()=0
 
virtual std::string toString () const =0
 
virtual ~CNormalBase ()
 

Detailed Description

Definition at line 23 of file CNormalBase.h.

Constructor & Destructor Documentation

virtual CNormalBase::~CNormalBase ( )
inlinevirtual

Definition at line 27 of file CNormalBase.h.

27 {};

Member Function Documentation

bool CNormalBase::areEqual ( const CNormalBase rhs) const
virtual

Definition at line 37 of file CNormalBase.cpp.

38  {
39  bool result = false;
40  if (dynamic_cast<const CNormalItem*>(this) != NULL && dynamic_cast<const CNormalItem*>(&rhs) != NULL)
41  {
42  result = (static_cast<const CNormalItem&>(*this) == static_cast<const CNormalItem&>(rhs));
43  }
44  else if (dynamic_cast<const CNormalFraction*>(this) != NULL && dynamic_cast<const CNormalFraction*>(&rhs) != NULL)
45  {
46  result = (static_cast<const CNormalFraction&>(*this) == static_cast<const CNormalFraction&>(rhs));
47  }
48  else if (dynamic_cast<const CNormalSum*>(this) != NULL && dynamic_cast<const CNormalSum*>(&rhs) != NULL)
49  {
50  result = (static_cast<const CNormalSum&>(*this) == static_cast<const CNormalSum&>(rhs));
51  }
52  else if (dynamic_cast<const CNormalProduct*>(this) != NULL && dynamic_cast<const CNormalProduct*>(&rhs) != NULL)
53  {
54  result = (static_cast<const CNormalProduct&>(*this) == static_cast<const CNormalProduct&>(rhs));
55  }
56  else if (dynamic_cast<const CNormalItemPower*>(this) != NULL && dynamic_cast<const CNormalItemPower*>(&rhs) != NULL)
57  {
58  result = (static_cast<const CNormalItemPower&>(*this) == static_cast<const CNormalItemPower&>(rhs));
59  }
60  else if (dynamic_cast<const CNormalGeneralPower*>(this) != NULL && dynamic_cast<const CNormalGeneralPower*>(&rhs) != NULL)
61  {
62  result = (static_cast<const CNormalGeneralPower&>(*this) == static_cast<const CNormalGeneralPower&>(rhs));
63  }
64  else if (dynamic_cast<const CNormalFunction*>(this) != NULL && dynamic_cast<const CNormalFunction*>(&rhs) != NULL)
65  {
66  result = (static_cast<const CNormalFunction&>(*this) == static_cast<const CNormalFunction&>(rhs));
67  }
68  /*
69  else if(dynamic_cast<const CNormalLogical*>(this)!=NULL && dynamic_cast<const CNormalLogical*>(&rhs)!=NULL)
70  {
71  result=(static_cast<const CNormalLogical&>(*this)==static_cast<const CNormalLogical&>(rhs));
72  }
73  else if(dynamic_cast<const CNormalChoice*>(this)!=NULL && dynamic_cast<const CNormalChoice*>(&rhs)!=NULL)
74  {
75  result=(static_cast<const CNormalChoice&>(*this)==static_cast<const CNormalChoice&>(rhs));
76  }
77  */
78  return result;
79  }
virtual CNormalBase* CNormalBase::copy ( ) const
pure virtual
virtual bool CNormalBase::simplify ( )
pure virtual
virtual std::string CNormalBase::toString ( ) const
pure virtual

The documentation for this class was generated from the following files: