Jive reference manual
List of all members | Public Types | Public Member Functions | Related Functions
jem::AutoPointer< T > Class Template Reference

#include <jem/base/AutoPointer.h>

Public Types

typedef AutoPointer Self
 

Public Member Functions

 AutoPointer ()
 
 AutoPointer (T *rhs)
 
 AutoPointer (const AutoPointer &rhs)
 
template<class U >
 AutoPointer (const AutoPointer< U > &rhs)
 
 AutoPointer (const Nil &rhs)
 
 ~AutoPointer ()
 
AutoPointeroperator= (const Self &rhs)
 
bool operator== (const Self &rhs) const
 
bool operator== (const Nil &rhs) const
 
bool operator!= (const Self &rhs) const
 
bool operator!= (const Nil &rhs) const
 
T * operator-> () const
 
T & operator* () const
 
void swap (Self &rhs)
 
bool isOwner () const
 
T * release () const
 
T * get () const
 

Related Functions

(Note that these are not member functions.)

template<class T >
void swap (AutoPointer< T > &lhs, AutoPointer< T > &rhs)
 Swaps to auto pointers. More...
 

Member Typedef Documentation

template<class T >
typedef AutoPointer jem::AutoPointer< T >::Self

Constructor & Destructor Documentation

template<class T >
jem::AutoPointer< T >::AutoPointer ( )
template<class T >
jem::AutoPointer< T >::AutoPointer ( T *  rhs)
template<class T >
jem::AutoPointer< T >::AutoPointer ( const AutoPointer< T > &  rhs)
template<class T >
template<class U >
jem::AutoPointer< T >::AutoPointer ( const AutoPointer< U > &  rhs)
template<class T >
jem::AutoPointer< T >::AutoPointer ( const Nil rhs)
template<class T >
jem::AutoPointer< T >::~AutoPointer ( )

Member Function Documentation

template<class T >
AutoPointer& jem::AutoPointer< T >::operator= ( const Self rhs)
template<class T >
bool jem::AutoPointer< T >::operator== ( const Self rhs) const
template<class T >
bool jem::AutoPointer< T >::operator== ( const Nil rhs) const
template<class T >
bool jem::AutoPointer< T >::operator!= ( const Self rhs) const
template<class T >
bool jem::AutoPointer< T >::operator!= ( const Nil rhs) const
template<class T >
T* jem::AutoPointer< T >::operator-> ( ) const
template<class T >
T& jem::AutoPointer< T >::operator* ( ) const
template<class T >
void jem::AutoPointer< T >::swap ( Self rhs)
template<class T >
bool jem::AutoPointer< T >::isOwner ( ) const
template<class T >
T* jem::AutoPointer< T >::release ( ) const
template<class T >
T* jem::AutoPointer< T >::get ( ) const

Friends And Related Function Documentation

template<class T >
void swap ( AutoPointer< T > &  lhs,
AutoPointer< T > &  rhs 
)
related
Parameters
lhs- an auto pointer object
rhs- another auto pointer object