COPASI API  4.16.103
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CEFMAlgorithm::CSpeciesOrderNode Class Reference
Inheritance diagram for CEFMAlgorithm::CSpeciesOrderNode:
Inheritance graph
[legend]
Collaboration diagram for CEFMAlgorithm::CSpeciesOrderNode:
Collaboration graph
[legend]

Public Member Functions

 CSpeciesOrderNode (const CSpeciesOrderNode &src)
 
 CSpeciesOrderNode (const size_t &index, const CTableauMatrix &matrix)
 
void update (const CTableauMatrix &matrix)
 
 ~CSpeciesOrderNode ()
 
- Public Member Functions inherited from CCopasiNode< size_t >
virtual bool addChild (CCopasiNode< Data > *pChild, CCopasiNode< Data > *pAfter=NULL)
 
bool addSibling (CCopasiNode< Data > *pSibling, CCopasiNode< Data > *pAfter=NULL)
 
 CCopasiNode (CCopasiNode< Data > *pParent=NULL)
 
 CCopasiNode (const CCopasiNode< Data > &src)
 
 CCopasiNode (const Data &data, CCopasiNode< Data > *pParent=NULL)
 
bool deleteChildren ()
 
CCopasiNode< Data > * getChild ()
 
const CCopasiNode< Data > * getChild () const
 
CCopasiNode< Data > * getChild (const size_t &index)
 
const CCopasiNode< Data > * getChild (const size_t &index) const
 
virtual const DatagetData () const
 
CCopasiNode< Data > * getNext ()
 
const CCopasiNode< Data > * getNext () const
 
CCopasiNode< Data > * getNextNonChild ()
 
const CCopasiNode< Data > * getNextNonChild () const
 
size_t getNumChildren () const
 
CCopasiNode< Data > * getParent ()
 
const CCopasiNode< Data > * getParent () const
 
CCopasiNode< Data > * getSibling ()
 
const CCopasiNode< Data > * getSibling () const
 
virtual bool removeChild (CCopasiNode< Data > *pChild)
 
virtual bool setData (const Data &data)
 
virtual ~CCopasiNode ()
 

Private Member Functions

 CSpeciesOrderNode ()
 

Private Attributes

std::vector< size_t > mTableauLines
 

Additional Inherited Members

- Public Types inherited from CCopasiNode< size_t >
typedef size_t Data
 
- Protected Member Functions inherited from CCopasiNode< size_t >
bool setChild (CCopasiNode< Data > *pChild)
 
bool setParent (CCopasiNode< Data > *pParent)
 
bool setSibling (CCopasiNode< Data > *pSibling)
 
- Protected Attributes inherited from CCopasiNode< size_t >
Data mData
 

Detailed Description

Definition at line 44 of file CEFMAlgorithm.h.

Constructor & Destructor Documentation

CEFMAlgorithm::CSpeciesOrderNode::CSpeciesOrderNode ( )
private

CEFMAlgorithm class. Used to calculate elementary flux modes

Created for COPASI by Stefan Hoops 2002-05-08 (C) Stefan Hoops 2002

Definition at line 35 of file CEFMAlgorithm.cpp.

35  :
38 {}
std::vector< size_t > mTableauLines
Definition: CEFMAlgorithm.h:60
CEFMAlgorithm::CSpeciesOrderNode::CSpeciesOrderNode ( const CSpeciesOrderNode src)

Definition at line 40 of file CEFMAlgorithm.cpp.

40  :
42  mTableauLines(src.mTableauLines)
43 {}
std::vector< size_t > mTableauLines
Definition: CEFMAlgorithm.h:60
CEFMAlgorithm::CSpeciesOrderNode::CSpeciesOrderNode ( const size_t &  index,
const CTableauMatrix matrix 
)

Definition at line 45 of file CEFMAlgorithm.cpp.

References update().

46  :
47  CCopasiNode< size_t >(index),
49 {
50  update(matrix);
51 }
void update(const CTableauMatrix &matrix)
std::vector< size_t > mTableauLines
Definition: CEFMAlgorithm.h:60
CEFMAlgorithm::CSpeciesOrderNode::~CSpeciesOrderNode ( )

Definition at line 53 of file CEFMAlgorithm.cpp.

54 {}

Member Function Documentation

void CEFMAlgorithm::CSpeciesOrderNode::update ( const CTableauMatrix matrix)

Definition at line 56 of file CEFMAlgorithm.cpp.

References CTableauMatrix::begin(), and CTableauMatrix::end().

Referenced by CSpeciesOrderNode().

57 {
58  mTableauLines.clear();
59 
60  std::list< const CTableauLine * >::const_iterator it = matrix.begin();
61  std::list< const CTableauLine * >::const_iterator end = matrix.end();
62  size_t TableauLineIndex = 0;
63 
64  for (; it != end; ++it, ++TableauLineIndex)
65  {
66  if ((*it)->getMultiplier(TableauLineIndex) != 0.0)
67  {
68  mTableauLines.push_back(TableauLineIndex);
69  }
70  }
71 }
std::list< const CTableauLine * >::iterator begin()
std::list< const CTableauLine * >::iterator end()
std::vector< size_t > mTableauLines
Definition: CEFMAlgorithm.h:60

Member Data Documentation

std::vector< size_t > CEFMAlgorithm::CSpeciesOrderNode::mTableauLines
private

Definition at line 60 of file CEFMAlgorithm.h.


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