NVBIO
|
This module implements a priority deque adaptor, allowing to push/pop from both ends of the container.
Classes | |
class | nvbio::priority_deque< Type, Sequence, Compare > |
Efficient double-ended priority queue. More... | |
|
inline |
Identical to std::priority_queue top().
Definition at line 214 of file priority_deque.h.
void nvbio::priority_deque< T, Sequence, Compare >::erase | ( | const_iterator | random_it) |
Removes a specified element from the deque.
random_it | An iterator in the range [begin, end) |
Definition at line 498 of file priority_deque.h.
priority_deque< T, Sequence, Compare >::const_reference nvbio::priority_deque< T, Sequence, Compare >::maximum | ( | void | ) | const |
Accesses a maximal element in the deque.
Definition at line 369 of file priority_deque.h.
void boost::container::priority_deque< Type, Sequence, Compare >::merge | ( | InputIterator | first, |
InputIterator | last | ||
) |
first,last | Input iterators bounding the range [ first, last) |
Definition at line 432 of file priority_deque.h.
priority_deque< T, Sequence, Compare >::const_reference nvbio::priority_deque< T, Sequence, Compare >::minimum | ( | void | ) | const |
Accesses a minimal element in the deque.
Definition at line 384 of file priority_deque.h.
|
inline |
Identical to std::priority_queue pop().
Definition at line 225 of file priority_deque.h.
void nvbio::priority_deque< T, Sequence, Compare >::pop_bottom | ( | void | ) |
Removes a minimal element from the deque.
Definition at line 399 of file priority_deque.h.
void nvbio::priority_deque< T, Sequence, Compare >::pop_top | ( | void | ) |
Removes a maximal element from the deque.
Definition at line 413 of file priority_deque.h.
|
explicit |
Constructs a new priority deque.
comp | Comparison class. |
seq | Container class. |
Definition at line 312 of file priority_deque.h.
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::priority_deque< T, S, C >::priority_deque | ( | const S & | seq, |
const bool | constructed = false |
||
) |
O(1) Creates a new priority deque from an already heapified container
Definition at line 320 of file priority_deque.h.
boost::container::priority_deque< Type, Sequence, Compare >::priority_deque | ( | InputIterator | first, |
InputIterator | last, | ||
const C & | comp, | ||
const S & | seq | ||
) |
first,last | Range of elements. |
comp | Instance of comparison class. |
seq | Instance of container class. |
Definition at line 338 of file priority_deque.h.
void nvbio::priority_deque< T, Sequence, Compare >::push | ( | const value_type & | value) |
Copies an element into the priority deque.
value | Element to add the the priority deque. |
Definition at line 355 of file priority_deque.h.
void nvbio::swap | ( | priority_deque< Type, Sequence, Compare > & | deque1, |
priority_deque< Type, Sequence, Compare > & | deque2 | ||
) |
Swaps the elements of two priority deques.
void nvbio::priority_deque< T, S, C >::swap | ( | priority_deque< T, S, C > & | other) |
Moves the elements from this deque into another, and vice-versa.
other | Priority deque with which to swap. |
Definition at line 446 of file priority_deque.h.
|
related |
deque1,deque2 | Priority deques. |
Definition at line 459 of file priority_deque.h.
|
inline |
Identical to std::priority_queue top().
Definition at line 211 of file priority_deque.h.
void nvbio::priority_deque< T, S, C >::update | ( | const_iterator | random_it, |
const value_type & | value | ||
) |
Modifies a specified element of the deque.
random_it | A valid iterator in the range [begin, end). |
value | The new value. |
Elements within the deque may be unordered.
Definition at line 479 of file priority_deque.h.