Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

nvutil::RCObject_AutoPtr< T > Class Template Reference

AutoPtr for reference counted objects. More...

#include <RCObject.h>

List of all members.

Public Member Functions

 RCObject_AutoPtr (T *ptr=0)
 Construct a RCObject_AutoPtr object from a pointer.
template<typename U>
 RCObject_AutoPtr (const RCObject_AutoPtr< U > &rhs)
 Copy constructor.
 ~RCObject_AutoPtr ()
 Destructor.
template<typename U>
RCObject_AutoPtr< T > & operator= (const RCObject_AutoPtr< U > &rhs)
 Assigning a RCObject_AutoPtr object.
T * get () const
 Equivalent to the selection operator.
T * operator-> () const
 Member selection operator to make this behave like a dump pointer.
T & operator * () const
 Pointer dereference operator to make this behave like a dump pointer.
T * release ()
 Release the pointer to the object.
void reset (T *ptr)
 Reset the pointer to the object.

Friends

class RCObject_AutoPtr


Detailed Description

template<typename T>
class nvutil::RCObject_AutoPtr< T >

AutoPtr for reference counted objects.

Enables us to be exception safe on file load time.


Constructor & Destructor Documentation

template<typename T>
nvutil::RCObject_AutoPtr< T >::RCObject_AutoPtr T *  ptr = 0  )  [inline, explicit]
 

Construct a RCObject_AutoPtr object from a pointer.

template<typename T>
template<typename U>
nvutil::RCObject_AutoPtr< T >::RCObject_AutoPtr const RCObject_AutoPtr< U > &  rhs  )  [inline]
 

Copy constructor.

template<typename T>
nvutil::RCObject_AutoPtr< T >::~RCObject_AutoPtr  )  [inline]
 

Destructor.


Member Function Documentation

template<typename T>
template<typename U>
RCObject_AutoPtr< T > & nvutil::RCObject_AutoPtr< T >::operator= const RCObject_AutoPtr< U > &  rhs  )  [inline]
 

Assigning a RCObject_AutoPtr object.

template<typename T>
T * nvutil::RCObject_AutoPtr< T >::get  )  const [inline]
 

Equivalent to the selection operator.

template<typename T>
T * nvutil::RCObject_AutoPtr< T >::operator->  )  const [inline]
 

Member selection operator to make this behave like a dump pointer.

template<typename T>
T & nvutil::RCObject_AutoPtr< T >::operator *  )  const [inline]
 

Pointer dereference operator to make this behave like a dump pointer.

template<typename T>
T * nvutil::RCObject_AutoPtr< T >::release  )  [inline]
 

Release the pointer to the object.

template<typename T>
void nvutil::RCObject_AutoPtr< T >::reset T *  ptr  ) 
 

Reset the pointer to the object.


The documentation for this class was generated from the following file:
Generated on Tue Mar 1 13:21:15 2005 for NVSGSDK by NVIDIA