COPASI API  4.16.103
Functions
CStepMatrixColumn.cpp File Reference
#include <stdlib.h>
#include <cmath>
#include <limits>
#include "copasi.h"
#include "CStepMatrixColumn.h"
#include "CBitPatternTreeMethod.h"
Include dependency graph for CStepMatrixColumn.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

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

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 }
size_t getNumberOfBits() const
Definition: CZeroSet.h:95
std::vector< C_INT64 > mReaction
bool isSet(const CIndex &index) const
Definition: CZeroSet.h:80