copasi API  0.1
Public Member Functions | Protected Member Functions | Protected Attributes
Expression2PresentationMML Class Reference

#include <Expression2PresentationMML.h>

Inheritance diagram for Expression2PresentationMML:
Expression2PresentationMMLUnits

List of all members.

Public Member Functions

 Expression2PresentationMML (const ASTNode *rootnode)
virtual ~Expression2PresentationMML ()
void setModel (const Model *m)
void setReaction (const Reaction *m)
void setUseReactionNameInLocalParameters (bool b)
void writeMathML (std::ostream &out) const

Protected Member Functions

void writeMathML (std::ostream &out, const ASTNode *node, unsigned int l) const
virtual void writeMathMLFunction (std::ostream &out, const ASTNode *node, unsigned int l) const
virtual void writeMathMLName (std::ostream &out, const ASTNode *node, unsigned int l) const
virtual void writeMathMLNumber (std::ostream &out, const ASTNode *node, unsigned int l) const

Protected Attributes

const ASTNode * mRootNode
const Model * mpModel
const Reaction * mpReaction
bool mUseReactionNameInLocalParameters

Constructor & Destructor Documentation

Expression2PresentationMML::Expression2PresentationMML ( const ASTNode *  rootnode)
virtual Expression2PresentationMML::~Expression2PresentationMML ( ) [inline, virtual]

Member Function Documentation

void Expression2PresentationMML::setModel ( const Model *  m) [inline]
void Expression2PresentationMML::setReaction ( const Reaction *  m) [inline]

set the reaction to be used as the environment for finding local parameters

void Expression2PresentationMML::setUseReactionNameInLocalParameters ( bool  b) [inline]

If this is set to true (the default) the actual name/id of a reaction is added to the name of local parameter. This may lead to rather long expressions. In cases where the reaction is identifiable by other means it should be set to false for more compact expression display.

void Expression2PresentationMML::writeMathML ( std::ostream &  out) const
void Expression2PresentationMML::writeMathML ( std::ostream &  out,
const ASTNode *  node,
unsigned int  l 
) const [protected]
void Expression2PresentationMML::writeMathMLFunction ( std::ostream &  out,
const ASTNode *  node,
unsigned int  l 
) const [protected, virtual]
void Expression2PresentationMML::writeMathMLName ( std::ostream &  out,
const ASTNode *  node,
unsigned int  l 
) const [protected, virtual]
void Expression2PresentationMML::writeMathMLNumber ( std::ostream &  out,
const ASTNode *  node,
unsigned int  l 
) const [protected, virtual]

Member Data Documentation

const Model* Expression2PresentationMML::mpModel [protected]
const Reaction* Expression2PresentationMML::mpReaction [protected]
const ASTNode* Expression2PresentationMML::mRootNode [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines