COPASI API
4.40.278
|
#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) |
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.
|
inline |
Construct a PQNode with the given index and key
idx | The index |
key | The key |
|
friend |
|
friend |
insert operator
|
private |
The index value
|
private |
The key value