PPL Logo

SafePool< T > Class Template Reference

#include <cklists.h>

Inheritance diagram for SafePool< T >:

Inheritance graph
[legend]
Collaboration diagram for SafePool< T >:

Collaboration graph
[legend]

Public Member Functions

 SafePool (allocFn _afn, freeFn _ffn, resetFn _rfn=NULL)
get (void)
void put (T m)

Protected Types

typedef T(* allocFn )()
typedef void(* freeFn )(T)
typedef void(* resetFn )(T)

Protected Attributes

int num
msgs [MAXMSGS]
allocFn allocfn
freeFn freefn
resetFn resetfn

Detailed Description

template<class T>
class SafePool< T >

Definition at line 529 of file cklists.h.


Member Typedef Documentation

template<class T>
typedef T(* SafePool< T >::allocFn)() [protected]

template<class T>
typedef void(* SafePool< T >::freeFn)(T) [protected]

template<class T>
typedef void(* SafePool< T >::resetFn)(T) [protected]


Constructor & Destructor Documentation

template<class T>
SafePool< T >::SafePool ( allocFn  _afn,
freeFn  _ffn,
resetFn  _rfn = NULL 
) [inline]

Definition at line 540 of file cklists.h.


Member Function Documentation

template<class T>
T SafePool< T >::get ( void   )  [inline]

Reimplemented in MsgPool.

Definition at line 545 of file cklists.h.

template<class T>
void SafePool< T >::put ( m  )  [inline]

Reimplemented in MsgPool.

Definition at line 550 of file cklists.h.


Field Documentation

template<class T>
int SafePool< T >::num [protected]

template<class T>
T SafePool< T >::msgs[MAXMSGS] [protected]

template<class T>
allocFn SafePool< T >::allocfn [protected]

template<class T>
freeFn SafePool< T >::freefn [protected]

Definition at line 537 of file cklists.h.

Referenced by SafePool< ObjectToken * >::put().

template<class T>
resetFn SafePool< T >::resetfn [protected]

Definition at line 538 of file cklists.h.

Referenced by SafePool< ObjectToken * >::put().


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

Generated on Mon Sep 21 08:29:41 2020 for Charm++ by  doxygen 1.5.5