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
[legend]
Collaboration diagram for CArena:

Collaboration graph
[legend]
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

Private Methods

 CArena (const CArena &rhs)
CArena & operator= (const CArena &rhs)

Member Typedef Documentation

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


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
DefaultHunkSize 


Constructor & Destructor Documentation

CArena::CArena size_t    hunk_size = 0
 

virtual CArena::~CArena   [virtual]
 

CArena::CArena const CArena &    rhs [private]
 


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.

CArena& CArena::operator= const CArena &    rhs [private]
 

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 Wed Apr 16 14:35:03 2003 for EBChombo by doxygen1.2.16