PPL Logo

CkPool< type, sz > Class Template Reference

CkPool has one single static queue per processor that maintains the already allocated buffers. More...

#include <ckpool.h>

Collaboration diagram for CkPool< type, sz >:

Collaboration graph
[legend]

Public Member Functions

void * operator new (size_t size)
void * operator new (size_t size, void *p)
void operator delete (void *p, size_t size)

Static Public Member Functions

static void destroyAll ()

Static Private Attributes

static CkPoolQueue< typebuffer = CkPoolQueue<type>(sz)

Friends

class CkMultiPool< type >

Detailed Description

template<typename type, unsigned int sz = 16>
class CkPool< type, sz >

CkPool has one single static queue per processor that maintains the already allocated buffers.

Templated with the type and the number of objects to be allocated in chunk. The typical usage would be to inherit from this class like: class MyClass : public CkPool<MyClass, 32>

Definition at line 77 of file ckpool.h.


Member Function Documentation

template<typename type, unsigned int sz = 16>
void* CkPool< type, sz >::operator new ( size_t  size  )  [inline]

Definition at line 81 of file ckpool.h.

template<typename type, unsigned int sz = 16>
void* CkPool< type, sz >::operator new ( size_t  size,
void *  p 
) [inline]

Definition at line 86 of file ckpool.h.

template<typename type, unsigned int sz = 16>
void CkPool< type, sz >::operator delete ( void *  p,
size_t  size 
) [inline]

Definition at line 89 of file ckpool.h.

References type.

template<typename type, unsigned int sz>
void CkPool< type, sz >::destroyAll (  )  [inline, static]

Definition at line 101 of file ckpool.h.


Friends And Related Function Documentation

template<typename type, unsigned int sz = 16>
friend class CkMultiPool< type > [friend]

Definition at line 93 of file ckpool.h.


Field Documentation

template<typename type, unsigned int sz = 16>
CkPoolQueue< type > CkPool< type, sz >::buffer = CkPoolQueue<type>(sz) [inline, static, private]

Definition at line 78 of file ckpool.h.


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

Generated on Thu May 24 07:57:30 2012 for Charm++ by  doxygen 1.5.5