OPTPP::SmartPtr< T > Class Template Reference
#include <OptppSmartPtr.h>
List of all members.
Detailed Description
template<class T>
class OPTPP::SmartPtr< T >
Howard Hinnant's reference counting handle class.
This is to be used as a pointer to class T. This will feel and smell just like a built-in pointer except: 1. There is no need to call delete on the pointer. 2. The default copy constructor and assignment implement ref-counting. 3. The user may call isNonUnique to determine if this pointer is the only pointer to the data. This can be used to hide the ref-counting behavior of a class. 4. Checks for dereference of a null pointer.
Constructor & Destructor Documentation
Member Function Documentation
|
template<class T> |
| bool OPTPP::SmartPtr< T >::isNonUnique |
( |
|
) |
const [inline] |
|
|
template<class T> |
| const T & OPTPP::SmartPtr< T >::operator * |
( |
|
) |
const [inline] |
|
|
template<class T> |
| OPTPP::SmartPtr< T >::operator const T * |
( |
|
) |
const [inline] |
|
|
template<class T> |
| const T * OPTPP::SmartPtr< T >::operator-> |
( |
|
) |
const [inline] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Bug Reports
OPT++ Developers
Copyright Information
GNU Lesser General
Public License
Documentation, generated by
, last revised August 30, 2006.