COPASI API  4.16.103
Functions
CProcessQueue.cpp File Reference
#include <limits>
#include "copasi.h"
#include "CProcessQueue.h"
#include "CMathModel.h"
#include "function/CExpression.h"
Include dependency graph for CProcessQueue.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CProcessQueue &o)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CProcessQueue o 
)

Definition at line 505 of file CProcessQueue.cpp.

References CProcessQueue::CAction::Assignment, CProcessQueue::CAction::Calculation, CProcessQueue::CAction::Callback, and CProcessQueue::mActions.

506 {
507  os << "Process Queue" << std::endl;
508  std::multimap< CProcessQueue::CKey, CProcessQueue::CAction >::const_iterator it;
509 
510  if (o.mActions.size()) os << " Actions:" << std::endl;
511 
512  for (it = o.mActions.begin(); it != o.mActions.end(); ++it)
513  {
514  os << "exec time " << it->first.mExecutionTime
515  << ", cascading lvl " << it->first.mCascadingLevel
516  << ", " << (it->first.mEquality ? "equality, " : "inequality");
517 
518  os << std::endl;
519 
520  CMathEvent * pEvent = it->second.mpEvent;
521 
522  os << "pEvent: 0x" << pEvent << ", Action: ";
523 
524  switch (it->second.mType)
525  {
527 
528  if (pEvent->delayAssignment())
529  {
530  os << "Calculation";
531  }
532  else
533  {
534  os << "Calculation & Assignment";
535  }
536 
537  break;
538 
540  os << "Assignment";
541  break;
542 
544  os << "Callback";
545  break;
546  }
547 
548  os << std::endl << std::endl;
549  }
550 
551  return os;
552 }
std::multimap< CKey, CAction > mActions