COPASI API  4.16.103
Functions
CIndexedPriorityQueue.cpp File Reference
#include "copasi.h"
#include "CCopasiMessage.h"
#include "CIndexedPriorityQueue.h"
Include dependency graph for CIndexedPriorityQueue.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const PQNode &d)
 
std::ostream & operator<< (std::ostream &os, const CIndexedPriorityQueue &d)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const PQNode d 
)

insert operator

Definition at line 280 of file CIndexedPriorityQueue.cpp.

References PQNode::mIndex, and PQNode::mKey.

281 {
282  os << "(" << d.mIndex << ", " << d.mKey << ")";
283  return os;
284 }
C_FLOAT64 mKey
std::ostream& operator<< ( std::ostream &  os,
const CIndexedPriorityQueue d 
)

insert operator

Definition at line 286 of file CIndexedPriorityQueue.cpp.

References CIndexedPriorityQueue::mHeap, and CIndexedPriorityQueue::mIndexPointer.

287 {
288  size_t i;
289 
290  os << "PQ: " << std::endl;
291 
292  std::vector <PQNode>::const_iterator it;
293  os << " mHeap: " << std::endl;
294 
295  for (it = d.mHeap.begin(); it != d.mHeap.end(); it++)
296  os << *it << std::endl;
297 
298  os << " mIndexPointer: " << std::endl;
299 
300  for (i = 0; i < d.mIndexPointer.size(); i++)
301  os << d.mIndexPointer[i] << " ";
302 
303  os << std::endl;
304 
305  os << std::endl;
306 
307  return os;
308 }
std::vector< size_t > mIndexPointer
std::vector< PQNode > mHeap