ESLA

Embeddable Scriting LAnguage

frantz@pangea.stanford.edu

Stanford University, Rock Fracture Project research group

© 2003

SmartPointer< T > Class Template Reference

template<class T>
class SmartPointer< T >


Public Methods

 SmartPointer ()
 SmartPointer (T *ptr)
 SmartPointer (const SmartPointer< T > &rhs)
 ~SmartPointer ()
SmartPointer< T > & operator= (T *ptr)
SmartPointer< T > & operator= (const SmartPointer< T > &rhs)
void forget ()
T * operator-> () const
T & operator * () const
 operator T * () const
bool operator< (const SmartPointer< T > &p) const
bool operator== (const SmartPointer< T > &p) const
bool is_nil () const

Constructor & Destructor Documentation

template<class T>
SmartPointer< T >::SmartPointer  
 

Definition at line 87 of file smart_pointer.h.

template<class T>
SmartPointer< T >::SmartPointer T *    ptr
 

Definition at line 91 of file smart_pointer.h.

template<class T>
SmartPointer< T >::SmartPointer const SmartPointer< T > &    rhs
 

Definition at line 96 of file smart_pointer.h.

template<class T>
SmartPointer< T >::~SmartPointer  
 

Definition at line 103 of file smart_pointer.h.


Member Function Documentation

template<class T>
void SmartPointer< T >::forget  
 

Makes the current instance a nil pointer ("forgets" the current reference). 'p.forget();' is a shorthand for 'p = nil;'

Definition at line 129 of file smart_pointer.h.

template<class T>
bool SmartPointer< T >::is_nil   const
 

'p.is_nil();' is a shorthand for 'p == nil;'

Definition at line 152 of file smart_pointer.h.

template<class T>
T & SmartPointer< T >::operator *   const
 

Definition at line 141 of file smart_pointer.h.

template<class T>
SmartPointer< T >::operator T *   const
 

Definition at line 147 of file smart_pointer.h.

template<class T>
T * SmartPointer< T >::operator->   const
 

Definition at line 135 of file smart_pointer.h.

template<class T>
bool SmartPointer< T >::operator< const SmartPointer< T > &    p const
 

Windows compatibility for dll export

Definition at line 70 of file smart_pointer.h.

template<class T>
SmartPointer< T > & SmartPointer< T >::operator= const SmartPointer< T > &    rhs
 

Definition at line 118 of file smart_pointer.h.

template<class T>
SmartPointer< T > & SmartPointer< T >::operator= T *    ptr
 

Definition at line 108 of file smart_pointer.h.

template<class T>
bool SmartPointer< T >::operator== const SmartPointer< T > &    p const
 

Definition at line 71 of file smart_pointer.h.


Generated on Wed May 14 11:42:34 2003 for Esla-lib by doxygen1.3-rc1