COPASI API
4.16.103
|
#include <CNormalItem.h>
Public Types | |
enum | Type { CONSTANT, VARIABLE } |
Public Member Functions | |
CNormalItem () | |
CNormalItem (const std::string &name, const Type &type) | |
CNormalItem (const CNormalItem &src) | |
virtual CNormalBase * | copy () const |
const std::string | getName () const |
const Type & | getType () const |
bool | operator< (const CNormalItem &rhs) const |
CNormalItem & | operator= (const CNormalItem &src) |
bool | operator== (const CNormalItem &rhs) const |
bool | setName (const std::string &name) |
bool | setType (const Type &type) |
virtual bool | simplify () |
virtual std::string | toString () const |
![]() | |
virtual bool | areEqual (const CNormalBase &rhs) const |
virtual | ~CNormalBase () |
Public Attributes | |
std::string | mName |
Type | mType |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CNormalItem &d) |
The class for items used in CNormal
Definition at line 22 of file CNormalItem.h.
enum CNormalItem::Type |
Enumeration of possible item types.
Enumerator | |
---|---|
CONSTANT | |
VARIABLE |
Definition at line 28 of file CNormalItem.h.
CNormalItem::CNormalItem | ( | ) |
Default constructor
Definition at line 33 of file CNormalItem.cpp.
Referenced by copy().
CNormalItem::CNormalItem | ( | const std::string & | name, |
const Type & | type | ||
) |
CNormalItem::CNormalItem | ( | const CNormalItem & | src | ) |
|
virtual |
const std::string CNormalItem::getName | ( | ) | const |
Retrieve the name of this item.
Definition at line 82 of file CNormalItem.cpp.
References mName.
Referenced by CNormalChoice::checkConditionTree(), CNormalChoiceLogical::checkConditionTree(), contains_necessary_mass_action_elements(), convertToCEvaluationNode(), and normalize_variable_names().
const CNormalItem::Type & CNormalItem::getType | ( | ) | const |
Retrieve the type of this item.
Definition at line 91 of file CNormalItem.cpp.
References mType.
Referenced by CNormalChoice::checkConditionTree(), CNormalChoiceLogical::checkConditionTree(), contains_necessary_mass_action_elements(), convertToCEvaluationNode(), and normalize_variable_names().
bool CNormalItem::operator< | ( | const CNormalItem & | rhs | ) | const |
CNormalItem & CNormalItem::operator= | ( | const CNormalItem & | src | ) |
bool CNormalItem::operator== | ( | const CNormalItem & | rhs | ) | const |
bool CNormalItem::setName | ( | const std::string & | name | ) |
Set the name of this item
Definition at line 62 of file CNormalItem.cpp.
References mName.
Referenced by normalize_variable_names(), and test_simplify::test_simplify_1().
bool CNormalItem::setType | ( | const Type & | type | ) |
Set the type of this item.
Definition at line 72 of file CNormalItem.cpp.
References mType.
Referenced by test_simplify::test_simplify_1().
|
inlinevirtual |
|
virtual |
Implements CNormalBase.
Definition at line 116 of file CNormalItem.cpp.
References mName.
Referenced by operator<<().
|
friend |
Definition at line 121 of file CNormalItem.cpp.
std::string CNormalItem::mName |
Definition at line 34 of file CNormalItem.h.
Referenced by getName(), operator<(), operator=(), operator==(), setName(), and toString().
Type CNormalItem::mType |
Definition at line 35 of file CNormalItem.h.
Referenced by getType(), operator<(), operator=(), operator==(), and setType().