COPASI API  4.16.103
Functions
CTableauLine.cpp File Reference
#include <iostream>
#include <cmath>
#include "copasi.h"
#include "CTableauLine.h"
Include dependency graph for CTableauLine.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CTableauLine &l)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CTableauLine l 
)

Definition at line 113 of file CTableauLine.cpp.

References CTableauLine::isReversible(), CTableauLine::mFluxMode, and CTableauLine::mReaction.

114 {
115  size_t i, imax = l.mReaction.size();
116  size_t j, jmax = l.mFluxMode.size();
117 
118  if (l.isReversible())
119  os << "reversible: ";
120  else
121  os << "irreversible:";
122 
123  for (i = 0; i < imax; i++)
124  os << " " << l.mReaction[i];
125 
126  os << "\t";
127 
128  for (j = 0; j < jmax; j++)
129  os << " " << l.mFluxMode[j];
130 
131  os << std::endl;
132 
133  return os;
134 }
std::vector< C_FLOAT64 > mReaction
Definition: CTableauLine.h:46
bool isReversible() const
std::vector< C_FLOAT64 > mFluxMode
Definition: CTableauLine.h:56