PPL Logo

CkPointer< T > Class Template Reference

#include <pup.h>

Inheritance diagram for CkPointer< T >:

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

Collaboration graph
[legend]

Public Member Functions

 CkPointer (const CkPointer< T > &src)
void operator= (const CkPointer< T > &src)
 CkPointer (T *src)
 Used on the send side, and does *not* delete the object.
 CkPointer (void)
 Begin completely empty: used on marshalling recv side.
 ~CkPointer ()
 operator T * ()
 Extract the object held by this class.
void pup (PUP::er &p)

Protected Member Functions

Tpeek (void)

Private Member Functions

 CkPointer (const CkPointer< T > &src)

Private Attributes

Tallocated
Tptr

Friends

void operator| (PUP::er &p, CkPointer< T > &v)

Detailed Description

template<class T>
class CkPointer< T >

Definition at line 748 of file pup.h.


Constructor & Destructor Documentation

template<class T>
CkPointer< T >::CkPointer ( const CkPointer< T > &  src  )  [private]

template<class T>
CkPointer< T >::CkPointer ( const CkPointer< T > &  src  )  [inline]

Definition at line 759 of file pup.h.

References CmiAbort().

template<class T>
CkPointer< T >::CkPointer ( T src  )  [inline]

Used on the send side, and does *not* delete the object.

Parameters:
src  Marshall this object.

Definition at line 770 of file pup.h.

References CkPointer< T >::allocated, and CkPointer< T >::ptr.

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

Begin completely empty: used on marshalling recv side.

Definition at line 777 of file pup.h.

References CkPointer< T >::allocated, and CkPointer< T >::ptr.

template<class T>
CkPointer< T >::~CkPointer (  )  [inline]

Definition at line 781 of file pup.h.

References CkPointer< T >::allocated.


Member Function Documentation

template<class T>
void CkPointer< T >::operator= ( const CkPointer< T > &  src  )  [inline]

Definition at line 762 of file pup.h.

References CmiAbort().

template<class T>
T* CkPointer< T >::peek ( void   )  [inline, protected]

Definition at line 767 of file pup.h.

References CkPointer< T >::ptr.

Referenced by CkReference< T >::operator T &().

template<class T>
CkPointer< T >::operator T * ( void   )  [inline]

Extract the object held by this class.

Deleting the pointer is now the user's responsibility

Definition at line 785 of file pup.h.

References CkPointer< T >::allocated, and CkPointer< T >::ptr.

template<class T>
void CkPointer< T >::pup ( PUP::er p  )  [inline]

Reimplemented in CkReference< T >.

Definition at line 787 of file pup.h.

References CkPointer< T >::allocated, and CkPointer< T >::ptr.

Referenced by CkReference< T >::pup().


Friends And Related Function Documentation

template<class T>
void operator| ( PUP::er p,
CkPointer< T > &  v 
) [friend]

Definition at line 800 of file pup.h.


Field Documentation

template<class T>
T* CkPointer< T >::allocated [private]

template<class T>
T* CkPointer< T >::ptr [private]


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

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