Lines Matching refs:m_heap
40 : m_heap(0), m_size_alloc( sz ), m_heap_size( 0 ), m_compar( cmp )
47 m_heap = new void*[m_size_alloc + 1];
50 m_heap[i] = 0;
56 delete[] m_heap;
63 void* topelem = m_heap[1];
64 m_heap[1] = m_heap[m_heap_size];
81 new_heap[j] = m_heap[j];
83 delete[] m_heap;
84 m_heap = new_heap;
87 while( (i > 1) && (m_compar( m_heap[parent( i )], elem ) < 0) ) {
88 m_heap[i] = m_heap[parent( i )];
91 m_heap[i] = elem;
99 int largest = (m_compar( m_heap[l], m_heap[i] ) > 0) ? l : i;
103 (m_compar( m_heap[r], m_heap[largest] ) > 0) ) {
108 void* tmp = m_heap[i];
109 m_heap[i] = m_heap[largest];
110 m_heap[largest] = tmp;