Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

Minisat::Internal::Heap< Comp > Class Template Reference

#include <ogdf/lib/minisat/mtl/Heap.h>

Public Member Functions

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

Private Member Functions

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

Static Private Member Functions

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

Private Attributes

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

Detailed Description

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

Definition at line 33 of file Heap.h.

Constructor & Destructor Documentation

◆ Heap()

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

Definition at line 76 of file Heap.h.

Member Function Documentation

◆ build()

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

Definition at line 123 of file Heap.h.

◆ clear()

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

Definition at line 136 of file Heap.h.

◆ decrease()

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

Definition at line 84 of file Heap.h.

◆ empty()

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

Definition at line 79 of file Heap.h.

◆ increase()

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

Definition at line 85 of file Heap.h.

◆ inHeap()

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

Definition at line 80 of file Heap.h.

◆ insert()

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

Definition at line 99 of file Heap.h.

◆ left()

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

Definition at line 39 of file Heap.h.

◆ operator[]()

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

Definition at line 81 of file Heap.h.

◆ parent()

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

Definition at line 41 of file Heap.h.

◆ percolateDown()

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

Definition at line 60 of file Heap.h.

◆ percolateUp()

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

Definition at line 44 of file Heap.h.

◆ removeMin()

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

Definition at line 110 of file Heap.h.

◆ right()

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

Definition at line 40 of file Heap.h.

◆ size()

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

Definition at line 78 of file Heap.h.

◆ update()

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

Definition at line 89 of file Heap.h.

Member Data Documentation

◆ heap

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

Definition at line 35 of file Heap.h.

◆ indices

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

Definition at line 36 of file Heap.h.

◆ lt

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

Definition at line 34 of file Heap.h.


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