COPASI API  4.40.278
PQNode Class Reference

#include <CIndexedPriorityQueue.h>

Public Member Functions

 PQNode (size_t idx, C_FLOAT64 key)
 

Private Attributes

size_t mIndex
 
C_FLOAT64 mKey
 

Friends

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

Detailed Description

The PQNode class contains two members, an integer to represent the index, and a double to represent the key. The heap structure of the indexed priority queue class is implemented as a vector of PQNode.

Constructor & Destructor Documentation

◆ PQNode()

PQNode::PQNode ( size_t  idx,
C_FLOAT64  key 
)
inline

Construct a PQNode with the given index and key

Parameters
idxThe index
keyThe key

Friends And Related Function Documentation

◆ CIndexedPriorityQueue

friend class CIndexedPriorityQueue
friend

◆ operator<<

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

insert operator

Member Data Documentation

◆ mIndex

size_t PQNode::mIndex
private

The index value

◆ mKey

C_FLOAT64 PQNode::mKey
private

The key value


The documentation for this class was generated from the following file: