SMT-RAT  24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
Minisat::Heap< Comp > Class Template Reference

#include <Heap.h>

Inheritance diagram for Minisat::Heap< Comp >:
Collaboration diagram for Minisat::Heap< Comp >:

Public Member Functions

 Heap (const Comp &c)
 
int size () const
 
bool empty () const
 
bool inHeap (int n) const
 
int operator[] (int index) const
 
void decrease (int n)
 
void increase (int n)
 
void update (int n)
 
void insert (int n)
 
int removeMin ()
 
void build (vec< int > &ns)
 
void clear (bool dealloc=false)
 
void print () const
 

Private Member Functions

void percolateUp (int i)
 
void percolateDown (int i)
 

Static Private Member Functions

static int left (int i)
 
static int right (int i)
 
static int parent (int i)
 

Private Attributes

Comp lt
 
vec< int > heap
 
vec< int > indices
 

Detailed Description

template<class Comp>
class Minisat::Heap< Comp >

Definition at line 32 of file Heap.h.

Constructor & Destructor Documentation

◆ Heap()

template<class Comp >
Minisat::Heap< Comp >::Heap ( const Comp &  c)
inline

Definition at line 87 of file Heap.h.

Member Function Documentation

◆ build()

template<class Comp >
void Minisat::Heap< Comp >::build ( vec< int > &  ns)
inline

Definition at line 159 of file Heap.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

template<class Comp >
void Minisat::Heap< Comp >::clear ( bool  dealloc = false)
inline

Definition at line 175 of file Heap.h.

Here is the call graph for this function:

◆ decrease()

template<class Comp >
void Minisat::Heap< Comp >::decrease ( int  n)
inline

Definition at line 112 of file Heap.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ empty()

template<class Comp >
bool Minisat::Heap< Comp >::empty ( ) const
inline

Definition at line 96 of file Heap.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ increase()

template<class Comp >
void Minisat::Heap< Comp >::increase ( int  n)
inline

Definition at line 118 of file Heap.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inHeap()

template<class Comp >
bool Minisat::Heap< Comp >::inHeap ( int  n) const
inline

Definition at line 101 of file Heap.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ insert()

template<class Comp >
void Minisat::Heap< Comp >::insert ( int  n)
inline

Definition at line 136 of file Heap.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ left()

template<class Comp >
static int Minisat::Heap< Comp >::left ( int  i)
inlinestaticprivate

Definition at line 39 of file Heap.h.

Here is the caller graph for this function:

◆ operator[]()

template<class Comp >
int Minisat::Heap< Comp >::operator[] ( int  index) const
inline

Definition at line 106 of file Heap.h.

Here is the call graph for this function:

◆ parent()

template<class Comp >
static int Minisat::Heap< Comp >::parent ( int  i)
inlinestaticprivate

Definition at line 49 of file Heap.h.

Here is the caller graph for this function:

◆ percolateDown()

template<class Comp >
void Minisat::Heap< Comp >::percolateDown ( int  i)
inlineprivate

Definition at line 70 of file Heap.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ percolateUp()

template<class Comp >
void Minisat::Heap< Comp >::percolateUp ( int  i)
inlineprivate

Definition at line 54 of file Heap.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print()

template<class Comp >
void Minisat::Heap< Comp >::print ( ) const
inline

Definition at line 182 of file Heap.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeMin()

template<class Comp >
int Minisat::Heap< Comp >::removeMin ( )
inline

Definition at line 146 of file Heap.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ right()

template<class Comp >
static int Minisat::Heap< Comp >::right ( int  i)
inlinestaticprivate

Definition at line 44 of file Heap.h.

Here is the caller graph for this function:

◆ size()

template<class Comp >
int Minisat::Heap< Comp >::size ( ) const
inline

Definition at line 91 of file Heap.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

template<class Comp >
void Minisat::Heap< Comp >::update ( int  n)
inline

Definition at line 125 of file Heap.h.

Here is the call graph for this function:

Field Documentation

◆ heap

template<class Comp >
vec<int> Minisat::Heap< Comp >::heap
private

Definition at line 35 of file Heap.h.

◆ indices

template<class Comp >
vec<int> Minisat::Heap< Comp >::indices
private

Definition at line 36 of file Heap.h.

◆ lt

template<class Comp >
Comp Minisat::Heap< Comp >::lt
private

Definition at line 34 of file Heap.h.


The documentation for this class was generated from the following file: