C-Breeze
C Compiler Infrastructure

[ Project home page]

Handle< T > Class Template Reference

#include <handle.h>

List of all members.

Public Member Functions

 Handle ()
 Handle (T *rhs)
 Handle (const Handle &rhs)
 ~Handle ()
Handleoperator= (const Handle &rhs)
void replace (T *new_ptr)
 operator void * () const
T & operator * () const
T * operator-> () const
void clear ()
template<class U>
void put_pointer_in (U *&ptr)

Private Attributes

T * p

template<class T>
class Handle< T >


Constructor & Destructor Documentation

template<class T>
Handle< T >::Handle  )  [inline]
 

Definition at line 34 of file handle.h.

References Handle< T >::p.

template<class T>
Handle< T >::Handle T *  rhs  )  [inline]
 

Definition at line 37 of file handle.h.

References Handle< T >::p.

template<class T>
Handle< T >::Handle const Handle< T > &  rhs  )  [inline]
 

Definition at line 40 of file handle.h.

References Handle< T >::p.

template<class T>
Handle< T >::~Handle  )  [inline]
 

Definition at line 50 of file handle.h.

References Handle< T >::p.


Member Function Documentation

template<class T>
void Handle< T >::clear  )  [inline]
 

Definition at line 88 of file handle.h.

References Handle< T >::p.

template<class T>
T& Handle< T >::operator *  )  const [inline]
 

Definition at line 76 of file handle.h.

References Handle< T >::p.

template<class T>
Handle< T >::operator void *  )  const [inline]
 

Definition at line 73 of file handle.h.

References Handle< T >::p.

template<class T>
T* Handle< T >::operator->  )  const [inline]
 

Definition at line 80 of file handle.h.

References Handle< T >::p.

template<class T>
Handle& Handle< T >::operator= const Handle< T > &  rhs  )  [inline]
 

Definition at line 57 of file handle.h.

References Handle< T >::p.

template<class T>
template<class U>
void Handle< T >::put_pointer_in U *&  ptr  )  [inline]
 

Definition at line 92 of file handle.h.

References Handle< T >::p.

template<class T>
void Handle< T >::replace T *  new_ptr  )  [inline]
 

Definition at line 68 of file handle.h.

References Handle< T >::p.


Member Data Documentation

template<class T>
T* Handle< T >::p [private]
 

Definition at line 101 of file handle.h.

Referenced by Handle< T >::clear(), Handle< T >::Handle(), Handle< T >::operator *(), Handle< T >::operator void *(), Handle< T >::operator->(), Handle< T >::operator=(), Handle< T >::put_pointer_in(), Handle< T >::replace(), and Handle< T >::~Handle().


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

Generated on February 1, 2006
Back to the C-Breeze home page