dsalglib  1.0.0
dsalglib is a ready to use data structures and algorithms library written in C++ . Object Oriented Template implementations are written.
Public Member Functions | List of all members
dsa::maxheap< type > Class Template Reference

#include <heap.h>

Public Member Functions

 maxheap (long long int size=0)
 
bool insert (type param)
 
type popmax ()
 
type getmax ()
 
long long int size ()
 
void traverse (void(fun)(type obj))
 
void clear ()
 

Detailed Description

template<class type>
class dsa::maxheap< type >

Definition at line 13 of file heap.h.

Constructor & Destructor Documentation

template<class type>
dsa::maxheap< type >::maxheap ( long long int  size = 0)
inline

Definition at line 57 of file heap.h.

Member Function Documentation

template<class type>
void dsa::maxheap< type >::clear ( )
inline

Definition at line 102 of file heap.h.

template<class type>
type dsa::maxheap< type >::getmax ( )
inline

Definition at line 85 of file heap.h.

template<class type>
bool dsa::maxheap< type >::insert ( type  param)
inline

Definition at line 63 of file heap.h.

template<class type>
type dsa::maxheap< type >::popmax ( )
inline

Definition at line 71 of file heap.h.

template<class type>
long long int dsa::maxheap< type >::size ( )
inline

Definition at line 90 of file heap.h.

template<class type>
void dsa::maxheap< type >::traverse ( void(fun)(type obj)  )
inline

Definition at line 95 of file heap.h.


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