This implementation of PriorityQueue imitates std::prioirty_queue but allows reserving space in the underlying std::vector. More...
Public Types | |
typedef std::vector< T > | container_type |
typedef container_type::value_type | value_type |
typedef container_type::reference | reference |
typedef container_type::const_reference | const_reference |
typedef container_type::size_type | size_type |
Public Member Functions | |
CustomPriorityQueue (const Cmp &cmp=Cmp(), const std::vector< T > &vec=std::vector< T >()) | |
template<typename Iter > | |
CustomPriorityQueue (Iter b, Iter e, const Cmp &cmp=Cmp()) | |
CustomPriorityQueue (const CustomPriorityQueue &that) | |
bool | empty () const |
size_type | size () const |
const_reference | top () const |
void | push (const value_type &x) |
void | pop () |
void | reserve (size_type s) |
Private Attributes | |
Cmp | cmp |
std::vector< T > | vec |
This implementation of PriorityQueue imitates std::prioirty_queue but allows reserving space in the underlying std::vector.
typedef container_type::const_reference AbstractSimObject::CustomPriorityQueue< T, Cmp >::const_reference |
typedef std::vector<T> AbstractSimObject::CustomPriorityQueue< T, Cmp >::container_type |
typedef container_type::reference AbstractSimObject::CustomPriorityQueue< T, Cmp >::reference |
typedef container_type::size_type AbstractSimObject::CustomPriorityQueue< T, Cmp >::size_type |
typedef container_type::value_type AbstractSimObject::CustomPriorityQueue< T, Cmp >::value_type |
AbstractSimObject::CustomPriorityQueue< T, Cmp >::CustomPriorityQueue | ( | const Cmp & | cmp = Cmp() , |
|
const std::vector< T > & | vec = std::vector<T>() | |||
) | [inline] |
AbstractSimObject::CustomPriorityQueue< T, Cmp >::CustomPriorityQueue | ( | Iter | b, | |
Iter | e, | |||
const Cmp & | cmp = Cmp () | |||
) | [inline] |
AbstractSimObject::CustomPriorityQueue< T, Cmp >::CustomPriorityQueue | ( | const CustomPriorityQueue< T, Cmp > & | that | ) | [inline] |
bool AbstractSimObject::CustomPriorityQueue< T, Cmp >::empty | ( | ) | const [inline] |
void AbstractSimObject::CustomPriorityQueue< T, Cmp >::pop | ( | ) | [inline] |
void AbstractSimObject::CustomPriorityQueue< T, Cmp >::push | ( | const value_type & | x | ) | [inline] |
void AbstractSimObject::CustomPriorityQueue< T, Cmp >::reserve | ( | size_type | s | ) | [inline] |
size_type AbstractSimObject::CustomPriorityQueue< T, Cmp >::size | ( | ) | const [inline] |
const_reference AbstractSimObject::CustomPriorityQueue< T, Cmp >::top | ( | ) | const [inline] |
Cmp AbstractSimObject::CustomPriorityQueue< T, Cmp >::cmp [private] |
std::vector<T> AbstractSimObject::CustomPriorityQueue< T, Cmp >::vec [private] |