std::pqueue< Key, Data, Compare > Class Template Reference
Detailed Description
template<typename Key, typename Data, typename Compare = less<Key>>
class std::pqueue< Key, Data, Compare >
#include <pqueue.h>
Public Types | |
typedef node * | pqueue_item |
Public Member Functions | |
pqueue () | |
~pqueue () | |
void | clear () |
bool | empty () const |
int | size () const |
const Key & | get_key (pqueue_item it) const |
const Data & | get_data (pqueue_item it) const |
pqueue_item | top () |
pqueue_item | insert (const Key &key, const Data &data) |
void | decrease_key (pqueue_item item, const Key &new_key) |
void | pop () |
void | remove (node *item) |
Member Typedef Documentation
◆ pqueue_item
template<typename Key , typename Data , typename Compare = less<Key>>
typedef node* std::pqueue< Key, Data, Compare >::pqueue_item |
Constructor & Destructor Documentation
◆ pqueue()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |
◆ ~pqueue()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |
Destructs queue
Definition at line 108 of file pqueue.h.
References std::pqueue< Key, Data, Compare >::clear().
Member Function Documentation
◆ clear()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |
Empties queue
Definition at line 114 of file pqueue.h.
References NULL.
Referenced by std::pqueue< Key, Data, Compare >::~pqueue().
◆ empty()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |
◆ size()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |
◆ get_key()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |
◆ get_data()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |
◆ top()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |
◆ insert()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |
◆ decrease_key()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |
◆ pop()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |
◆ remove()
template<typename Key , typename Data , typename Compare = less<Key>>
|
inline |