GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71790
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UnboundedMinMaxHeap< T > Class Template Reference

#include <minmaxheap.h>

Inheritance diagram for UnboundedMinMaxHeap< T >:
Collaboration diagram for UnboundedMinMaxHeap< T >:

Public Member Functions

 UnboundedMinMaxHeap ()
 
 UnboundedMinMaxHeap (HeapIndex size)
 
virtual ~UnboundedMinMaxHeap ()
 
- Public Member Functions inherited from BasicMinMaxHeap< T >
 BasicMinMaxHeap (HeapIndex size)
 
virtual ~BasicMinMaxHeap (void)
 
bool empty (void) const
 
HeapIndex size () const
 
get (HeapIndex i) const
 
void insert (const T &elt)
 
bool min (T &elt) const
 
bool extract_min (T &elt)
 
bool max (T &elt) const
 
bool extract_max (T &elt)
 
bool extract_all_min (T &elt)
 
void reset ()
 
void clear ()
 
void destructiveVerify ()
 
void verify ()
 
void print () const
 
void print_range () const
 

Protected Member Functions

virtual void grow ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from BasicMinMaxHeap< T >
static T * allocateHeap (HeapIndex n)
 
static void freeHeap (T *)
 
- Protected Attributes inherited from BasicMinMaxHeap< T >
HeapIndex maxsize
 
HeapIndex lastindex
 
T * A
 

Detailed Description

template<class T>
class UnboundedMinMaxHeap< T >

Definition at line 779 of file minmaxheap.h.

Constructor & Destructor Documentation

template<class T>
UnboundedMinMaxHeap< T >::UnboundedMinMaxHeap ( )
inline

Definition at line 781 of file minmaxheap.h.

template<class T>
UnboundedMinMaxHeap< T >::UnboundedMinMaxHeap ( HeapIndex  size)
inline

Definition at line 782 of file minmaxheap.h.

template<class T>
virtual UnboundedMinMaxHeap< T >::~UnboundedMinMaxHeap ( )
inlinevirtual

Definition at line 783 of file minmaxheap.h.

Member Function Documentation

template<class T >
void UnboundedMinMaxHeap< T >::grow ( )
protectedvirtual

Implements BasicMinMaxHeap< T >.

Definition at line 789 of file minmaxheap.h.

References old.


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