Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CArena Class Reference

#include <Arena.H>

Inheritance diagram for CArena:

Inheritance graph
Collaboration diagram for CArena:

Collaboration graph
List of all members.

Public Types

enum  { DefaultHunkSize = 1024*1024 }

Public Methods

 CArena (size_t hunk_size=0)
virtual ~CArena ()
virtual void * alloc (size_t nbytes)
virtual void free (void *ap)
void * calloc (size_t nmemb, size_t size)
void * realloc (void *ptr, size_t size)

Protected Types

typedef set< NodeNL

Protected Attributes

std::vector< void * > m_alloc
NL m_freelist
NL m_busylist
size_t m_hunk

Member Typedef Documentation

typedef set< Node > CArena::NL [protected]

Member Enumeration Documentation

anonymous enum

Enumeration values:

Constructor & Destructor Documentation

CArena::CArena size_t    hunk_size = 0

virtual CArena::~CArena   [virtual]

Member Function Documentation

virtual void* CArena::alloc size_t    nbytes [virtual]

Implements Arena.

void* CArena::calloc size_t    nmemb,
size_t    size

virtual void CArena::free void *    ap [virtual]

Implements Arena.

void* CArena::realloc void *    ptr,
size_t    size

Member Data Documentation

std::vector<void*> CArena::m_alloc [protected]

NL CArena::m_busylist [protected]

NL CArena::m_freelist [protected]

size_t CArena::m_hunk [protected]

The documentation for this class was generated from the following file:
Generated on Thu Aug 29 11:07:38 2002 for Chombo&INS by doxygen1.2.16