|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Envelope-letter type of smart pointers. More...
#include <owl/pointer.h>
Public Member Functions | |
| TEnvelope (T *object) | |
| TEnvelope (const TEnvelope &src) | |
| ~TEnvelope () | |
| TEnvelope & | operator= (const TEnvelope &src) |
| TEnvelope & | operator= (T *object) |
| T * | operator-> () |
| T & | operator* () |
Envelope-letter type of smart pointers.
In this implementation the envelope acts as a smart pointer to a reference-counted internal letter. This allows a lot of flexibility & safety in working with a single object (associated with the letter) being assigned to numerous envelopes in many scopes. An 'A' version is provided for use with arrays.
Use like:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| TEnvelope< T > & owl::TEnvelope< T >::operator= | ( | const TEnvelope< T > & | src | ) |
| TEnvelope< T > & owl::TEnvelope< T >::operator= | ( | T * | object | ) |