21 #ifndef Minisat_Heap_h
22 #define Minisat_Heap_h
39 static inline int left(
int i )
44 static inline int right(
int i )
59 while( i != 0 &&
lt( x,
heap[p] ) )
76 if( !
lt(
heap[child], x ) )
161 for(
int i = 0; i <
heap.
size(); i++ )
165 for(
int i = 0; i < ns.
size(); i++ )
171 for(
int i =
heap.
size() / 2 - 1; i >= 0; i-- )
177 for(
int i = 0; i <
heap.
size(); i++ )
184 std::cout <<
"Order heap:";
185 for(
int i = 0; i <
heap.
size(); i++ )
186 std::cout <<
" " <<
heap[i];
187 std::cout << std::endl;
void build(vec< int > &ns)
int operator[](int index) const
void clear(bool dealloc=false)
void percolateDown(int i)
const T & last(void) const
void clear(bool dealloc=false)