OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TPointerBase< T > Class Template Reference

Smart pointer base class. More...

#include <owl/pointer.h>

Inheritance diagram for owl::TPointerBase< T >:
owl::TAPointer< owl::TRect > owl::TAPointer< owl::TFileName > owl::TAPointer< tchar > owl::TPointer< owl::TBitmap > owl::TAPointer< T > owl::TPointer< T >

Public Member Functions

T & operator* ()
 
 operator T* ()
 
int operator! () const
 
T * Relinquish ()
 

Protected Member Functions

 TPointerBase (T *pointer)
 
 TPointerBase ()
 

Protected Attributes

T * P
 

Detailed Description

template<class T>
class owl::TPointerBase< T >

Smart pointer base class.

Provides basic conversion operator to T*, as well as dereferencing (*), and 0-checking (!). This and derived classes assume that they alone are responsible for deleting the object or array unless Relinquish() is called.

Definition at line 40 of file pointer.h.

Constructor & Destructor Documentation

◆ TPointerBase() [1/2]

template<class T >
owl::TPointerBase< T >::TPointerBase ( T * pointer)
inlineprotected

Definition at line 48 of file pointer.h.

◆ TPointerBase() [2/2]

template<class T >
owl::TPointerBase< T >::TPointerBase ( )
inlineprotected

Definition at line 49 of file pointer.h.

Member Function Documentation

◆ operator T*()

template<class T >
owl::TPointerBase< T >::operator T* ( )
inline

Definition at line 43 of file pointer.h.

◆ operator!()

template<class T >
int owl::TPointerBase< T >::operator! ( ) const
inline

Definition at line 44 of file pointer.h.

References owl::TPointerBase< T >::P.

◆ operator*()

template<class T >
T & owl::TPointerBase< T >::operator* ( )
inline

Definition at line 42 of file pointer.h.

References owl::TPointerBase< T >::P.

◆ Relinquish()

template<class T >
T * owl::TPointerBase< T >::Relinquish ( )
inline

Definition at line 45 of file pointer.h.

References owl::TPointerBase< T >::P.

Member Data Documentation

◆ P

template<class T >
T* owl::TPointerBase< T >::P
protected

Definition at line 51 of file pointer.h.


The documentation for this class was generated from the following file: