minmaxheap< T, cmps, cmpb > Class Template Reference

#include <minmaxheap.hpp>

Inheritance diagram for minmaxheap< T, cmps, cmpb >:

Inheritance graph
base refererrect $classminmaxheap.html 551,9 925,33rect $classminmaxheap.html 551,72 925,96rect $classminmaxheap.html 581,135 895,159rect $classminmaxheap.html 598,197 878,221rect $classminmaxheap.html 581,260 895,284rect $classminmaxheap.html 598,322 878,346
[legend]

List of all members.


Detailed Description

template<typename T, typename cmps, typename cmpb>
class minmaxheap< T, cmps, cmpb >

Definition at line 27 of file minmaxheap.hpp.


Public Member Functions

 minmaxheap (int size_)
 ~minmaxheap ()
const T & operator[] (int n) const
const T & operator() () const
void put (const T &elem)
void clear ()

Private Member Functions

void upheap (const int position)
void downheap ()

Private Attributes

int size
int filled
T * heap
cmps s
cmpb b

Constructor & Destructor Documentation

template<typename T, typename cmps, typename cmpb>
minmaxheap< T, cmps, cmpb >::minmaxheap ( int  size_  )  [inline]

Definition at line 37 of file minmaxheap.hpp.

template<typename T, typename cmps, typename cmpb>
minmaxheap< T, cmps, cmpb >::~minmaxheap (  )  [inline]

Definition at line 38 of file minmaxheap.hpp.


Member Function Documentation

template<typename T, typename cmps, typename cmpb>
void minmaxheap< T, cmps, cmpb >::upheap ( const int  position  )  [inline, private]

template<typename T, typename cmps, typename cmpb>
void minmaxheap< T, cmps, cmpb >::downheap (  )  [inline, private]

template<typename T, typename cmps, typename cmpb>
const T& minmaxheap< T, cmps, cmpb >::operator[] ( int  n  )  const [inline]

Definition at line 39 of file minmaxheap.hpp.

template<typename T, typename cmps, typename cmpb>
const T& minmaxheap< T, cmps, cmpb >::operator() (  )  const [inline]

Reimplemented in getmax< T >, and getmin< T >.

Definition at line 40 of file minmaxheap.hpp.

Referenced by minheap< minmaxpos< T > >::max(), and maxheap< minmaxpos< T > >::min().

template<typename T, typename cmps, typename cmpb>
void minmaxheap< T, cmps, cmpb >::put ( const T &  elem  )  [inline]

template<typename T, typename cmps, typename cmpb>
void minmaxheap< T, cmps, cmpb >::clear (  )  [inline]

Definition at line 42 of file minmaxheap.hpp.

Referenced by Parabelzentrum::clear().


Member Data Documentation

template<typename T, typename cmps, typename cmpb>
int minmaxheap< T, cmps, cmpb >::size [private]

template<typename T, typename cmps, typename cmpb>
int minmaxheap< T, cmps, cmpb >::filled [private]

template<typename T, typename cmps, typename cmpb>
T* minmaxheap< T, cmps, cmpb >::heap [private]

template<typename T, typename cmps, typename cmpb>
cmps minmaxheap< T, cmps, cmpb >::s [private]

Definition at line 32 of file minmaxheap.hpp.

Referenced by minmaxheap< T, cmps, cmpb >::downheap().

template<typename T, typename cmps, typename cmpb>
cmpb minmaxheap< T, cmps, cmpb >::b [private]


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

Generated on Fri Jul 24 12:49:18 2009 for Xgrayimg Library by  doxygen 1.5.5