PPL Logo

CkMultiPool< type > Class Template Reference

CkMultiPool allows the user to have both a default queue, and specific queues from which to allocate. More...

#include <ckpool.h>


Public Member Functions

void * operator new (size_t sz)
void * operator new (size_t sz, CkPoolQueue< type > *buf)
void * operator new (size_t size, void *p)
void operator delete (void *p, size_t sz)


Detailed Description

template<typename type>
class CkMultiPool< type >

CkMultiPool allows the user to have both a default queue, and specific queues from which to allocate.

This should be more useful when deletion of queues and/or purge will be implemented. There is a pointer saved for each element allocated, so the correct queue will be used during deallocation.

Definition at line 111 of file ckpool.h.


Member Function Documentation

template<typename type>
void* CkMultiPool< type >::operator new ( size_t  sz  )  [inline]

Definition at line 113 of file ckpool.h.

References type.

template<typename type>
void* CkMultiPool< type >::operator new ( size_t  sz,
CkPoolQueue< type > *  buf 
) [inline]

Definition at line 120 of file ckpool.h.

References CkPoolQueue< type >::dequeue(), and type.

template<typename type>
void* CkMultiPool< type >::operator new ( size_t  size,
void *  p 
) [inline]

Definition at line 127 of file ckpool.h.

template<typename type>
void CkMultiPool< type >::operator delete ( void *  p,
size_t  sz 
) [inline]

Definition at line 130 of file ckpool.h.

References type.


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

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