HL::Threshold< ThresholdBytes, super > Class Template Reference

#include <dlheap.h>

Inheritance diagram for HL::Threshold< ThresholdBytes, super >:
super

List of all members.

Public Types

enum  { MIN_LARGE_SIZE = 64 }

Public Member Functions

 Threshold (void)
void * malloc (const size_t sz)
void free (void *ptr)

Private Attributes

size_t inUse
 The number of bytes in use.
size_t maxInUse
 The high-water mark of bytes in use.
size_t threshold
bool freeAllNextMalloc
 Should we free all in the superheap on the next malloc?

template<int ThresholdBytes, class super>
class HL::Threshold< ThresholdBytes, super >


Member Enumeration Documentation

template<int ThresholdBytes, class super>
anonymous enum
Enumerator:
MIN_LARGE_SIZE 

Constructor & Destructor Documentation

template<int ThresholdBytes, class super>
HL::Threshold< ThresholdBytes, super >::Threshold ( void   )  [inline]

Member Function Documentation

template<int ThresholdBytes, class super>
void HL::Threshold< ThresholdBytes, super >::free ( void *  ptr  )  [inline]
template<int ThresholdBytes, class super>
void* HL::Threshold< ThresholdBytes, super >::malloc ( const size_t  sz  )  [inline]

Member Data Documentation

template<int ThresholdBytes, class super>
bool HL::Threshold< ThresholdBytes, super >::freeAllNextMalloc [private]

Should we free all in the superheap on the next malloc?

template<int ThresholdBytes, class super>
size_t HL::Threshold< ThresholdBytes, super >::inUse [private]

The number of bytes in use.

template<int ThresholdBytes, class super>
size_t HL::Threshold< ThresholdBytes, super >::maxInUse [private]

The high-water mark of bytes in use.

template<int ThresholdBytes, class super>
size_t HL::Threshold< ThresholdBytes, super >::threshold [private]

The documentation for this class was generated from the following file:
Generated on Tue Aug 2 11:51:30 2011 for Galois by  doxygen 1.6.3