34 #ifndef __H__UG__LIB_DISC__AMG_SOLVER__BoxPriorityQueue2_H__
35 #define __H__UG__LIB_DISC__AMG_SOLVER__BoxPriorityQueue2_H__
134 for(
size_t i=0; i<
m_prev.size(); i++)
147 if(
m_box.size() < val+1)
updateable priority queue class. this priority queue works on an external array of elements T.
Definition: boxsort2.h:79
void update(size_t i)
Definition: boxsort2.h:212
stdvector< int > m_boxEnd
Definition: boxsort2.h:274
size_t height() const
returns nr of elements in the heap.
Definition: boxsort2.h:233
BoxPriorityQueue2(size_t n, const T *arr_)
Definition: boxsort2.h:92
size_t m_height
Definition: boxsort2.h:277
stdvector< size_t > m_values
Definition: boxsort2.h:275
stdvector< int > m_prev
Definition: boxsort2.h:274
stdvector< int > m_boxBegin
Definition: boxsort2.h:274
~BoxPriorityQueue2()
deconstructor
Definition: boxsort2.h:102
BoxPriorityQueue2(const BoxPriorityQueue2< T > &other)
void create(const std::vector< T > &v)
Definition: boxsort2.h:125
stdvector< stdvector< size_t > > m_box
Definition: boxsort2.h:272
void remove(size_t i)
removes index i in arr
Definition: boxsort2.h:171
BoxPriorityQueue2()
Definition: boxsort2.h:84
void insert_item(size_t i)
Definition: boxsort2.h:141
size_t remove_max()
returns the index in arr of maximal element of the heap
Definition: boxsort2.h:193
void size_check(size_t i)
Definition: boxsort2.h:266
size_t get_max() const
returns the index in m_arr of maximal element of the heap
Definition: boxsort2.h:204
bool is_in(size_t i)
Definition: boxsort2.h:221
void create(size_t n, const T *arr_)
creates the queue on a external array arr_[0]..arr_[n-1]
Definition: boxsort2.h:109
void reset()
Definition: boxsort2.h:130
stdvector< int > m_next
Definition: boxsort2.h:274
BoxPriorityQueue2(const std::vector< T > &v)
Definition: boxsort2.h:97
size_t arr_size() const
returns size of external array
Definition: boxsort2.h:227
const T * arr
Definition: boxsort2.h:270
size_t m_size
Definition: boxsort2.h:276
Definition: stl_debug.h:45
#define UG_ASSERT(expr, msg)
Definition: assert.h:70
size_t get_val(const T &t)
Definition: boxsort.h:48
const int BOXPRIORITYQUEUE_MAXIMAL_VALUE
maximal value for T::get_val(). Keep in mind that memory requirements are O(max get_val()).
Definition: boxsort.h:59
const int BOXPRIORITYQUEUE2_MAXIMAL_VALUE
maximal value for T::get_val(). Keep in mind that memory requirements are O(max get_val()).
Definition: boxsort2.h:59