Keos::CSmartPtr< T, Ownership > Class Template Reference

Smart pointers using policies. More...

#include <KeosSmartPtr.h>

Inheritance diagram for Keos::CSmartPtr< T, Ownership >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CSmartPtr ()
 Default constructor.
 CSmartPtr (const CSmartPtr &Copy)
 Copy constructor.
 CSmartPtr (T *pPointer)
 Constructor from a pointer.
 ~CSmartPtr ()
 Destructor.
T & operator * () const
 Star operator.
T * operator-> () const
 Access operator.
const CSmartPtroperator= (const CSmartPtr &Pointer)
 Affectation operator.
 operator T * () const
 Operator of cast in T*.

Detailed Description

template<class T, template< class > class Ownership = CRefCount>
class Keos::CSmartPtr< T, Ownership >

Smart pointers using policies.

Definition at line 35 of file KeosSmartPtr.h.


Constructor & Destructor Documentation

template<class T, template< class > class Ownership>
Keos::CSmartPtr< T, Ownership >::CSmartPtr (  )  [inline]

Default constructor.

Definition at line 98 of file KeosSmartPtr.h.

template<class T, template< class > class Ownership>
Keos::CSmartPtr< T, Ownership >::CSmartPtr ( const CSmartPtr< T, Ownership > &  Copy  )  [inline]

Copy constructor.

Parameters:
Copy Object to be copied.

Definition at line 104 of file KeosSmartPtr.h.

template<class T, template< class > class Ownership>
Keos::CSmartPtr< T, Ownership >::CSmartPtr ( T *  pPointer  )  [inline]

Constructor from a pointer.

Parameters:
pPointer Pointer to store.

Definition at line 111 of file KeosSmartPtr.h.

template<class T, template< class > class Ownership>
Keos::CSmartPtr< T, Ownership >::~CSmartPtr (  )  [inline]

Destructor.

Definition at line 117 of file KeosSmartPtr.h.


Member Function Documentation

template<class T, template< class > class Ownership>
T & Keos::CSmartPtr< T, Ownership >::operator * (  )  const [inline]

Star operator.

Returns:
Reference on the datum.

Definition at line 132 of file KeosSmartPtr.h.

References Assert.

template<class T, template< class > class Ownership>
T * Keos::CSmartPtr< T, Ownership >::operator-> (  )  const [inline]

Access operator.

Returns:
Pointer on the datum.

Definition at line 141 of file KeosSmartPtr.h.

References Assert.

template<class T, template< class > class Ownership>
const CSmartPtr< T, Ownership > & Keos::CSmartPtr< T, Ownership >::operator= ( const CSmartPtr< T, Ownership > &  Pointer  )  [inline]

Affectation operator.

Parameters:
Pointer Pointer to affect
Returns:
Constant reference on the current object.

Definition at line 150 of file KeosSmartPtr.h.

template<class T, template< class > class Ownership>
Keos::CSmartPtr< T, Ownership >::operator T * (  )  const [inline]

Operator of cast in T*.

Returns:
Constant pointer on the datum.

Definition at line 159 of file KeosSmartPtr.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 9 14:29:29 2007 for Keos by  doxygen 1.5.1-p1