COPASI API  4.16.103
Classes | Functions
CStepMatrixColumn.h File Reference
#include <vector>
#include "copasi/elementaryFluxModes/CZeroSet.h"
Include dependency graph for CStepMatrixColumn.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CStepMatrixColumn
 

Functions

std::ostream & operator<< (std::ostream &, const CStepMatrixColumn &)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const CStepMatrixColumn  
)

Definition at line 160 of file CStepMatrixColumn.cpp.

References CZeroSet::getNumberOfBits(), CZeroSet::isSet(), CStepMatrixColumn::mReaction, and CStepMatrixColumn::mZeroSet.

161 {
162  os << ' ';
163 
164  size_t Size = c.mZeroSet.getNumberOfBits();
165  CZeroSet::CIndex Index;
166  size_t i = 0;
167  size_t imax = Size - c.mReaction.size();
168 
169  for (; i < imax; ++i, ++Index)
170  {
171  if (c.mZeroSet.isSet(Index))
172  {
173  os << "*\t";
174  }
175  else
176  {
177  os << ".\t";
178  }
179  }
180 
181  for (i = c.mReaction.size(); i > 0;)
182  {
183  --i;
184 
185  os << c.mReaction[i] << "\t";;
186  }
187 
188  return os;
189 }