Open
Graph Drawing
Framework

 v.2007.11
 

ogdf::HeapBase< Priority, HeapObject > Class Template Reference

#include <HeapBase.h>

List of all members.

Public Member Functions

 HeapBase ()
 Constructor.
virtual ~HeapBase ()
virtual void makeHeap ()=0
 build a heap out of a given set of elements
HeapObject minRet ()
virtual void insert (HeapObject, Priority)
 insert a new element with priority key
virtual void decreaseKey ()
 update the data structure by decreasing the key of an object
int size () const
bool empty () const

Protected Attributes

int m_size


Detailed Description

template<class Priority, class HeapObject>
class ogdf::HeapBase< Priority, HeapObject >

Definition at line 96 of file HeapBase.h.


Constructor & Destructor Documentation

template<class Priority, class HeapObject>
ogdf::HeapBase< Priority, HeapObject >::HeapBase (  )  [inline]

Constructor.

Definition at line 100 of file HeapBase.h.

template<class Priority, class HeapObject>
virtual ogdf::HeapBase< Priority, HeapObject >::~HeapBase (  )  [inline, virtual]

Definition at line 102 of file HeapBase.h.


Member Function Documentation

template<class Priority, class HeapObject>
virtual void ogdf::HeapBase< Priority, HeapObject >::makeHeap (  )  [pure virtual]

build a heap out of a given set of elements

Implemented in ogdf::BinaryHeap< key, HeapObject >, and ogdf::BinaryHeap< double, ogdf::ELabelPos::PosInfo * >.

template<class Priority, class HeapObject>
HeapObject ogdf::HeapBase< Priority, HeapObject >::minRet (  )  [inline]

Definition at line 108 of file HeapBase.h.

template<class Priority, class HeapObject>
virtual void ogdf::HeapBase< Priority, HeapObject >::insert ( HeapObject  ,
Priority   
) [inline, virtual]

insert a new element with priority key

Definition at line 114 of file HeapBase.h.

template<class Priority, class HeapObject>
virtual void ogdf::HeapBase< Priority, HeapObject >::decreaseKey (  )  [inline, virtual]

update the data structure by decreasing the key of an object

Definition at line 122 of file HeapBase.h.

template<class Priority, class HeapObject>
int ogdf::HeapBase< Priority, HeapObject >::size (  )  const [inline]

Reimplemented in ogdf::BinaryHeap< key, HeapObject >, and ogdf::BinaryHeap< double, ogdf::ELabelPos::PosInfo * >.

Definition at line 126 of file HeapBase.h.

template<class Priority, class HeapObject>
bool ogdf::HeapBase< Priority, HeapObject >::empty (  )  const [inline]

Reimplemented in ogdf::BinaryHeap< key, HeapObject >, and ogdf::BinaryHeap< double, ogdf::ELabelPos::PosInfo * >.

Definition at line 128 of file HeapBase.h.


Member Data Documentation

template<class Priority, class HeapObject>
int ogdf::HeapBase< Priority, HeapObject >::m_size [protected]

Definition at line 132 of file HeapBase.h.


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

© 1999-2007 by oreas GmbH, © 2005-2007 by University Dortmund and University Cologne.

Generated on Thu Nov 22 19:40:08 2007 by doxygen 1.5.4.