
Public Member Functions | |
| TMCSmartPtr (T *ptr=NULL) | |
| ~TMCSmartPtr () | |
| T * | operator= (T *ptr) |
| void | Allocate () |
| void | CopyObjectFrom (const TMCSmartPtr &fromSmart) |
| void | TransferObjectFrom (TMCSmartPtr &fromSmart) |
| void | SetToNullWithoutDeleting () |
| void | AssignWithoutDeleting (T *lp) |
| TMCSmartPtr * | This () |
| because & has been overriden differently :-( | |
Static Protected Member Functions | |
| static T * | Assign (T **pp, T *lp) |
Private Member Functions | |
| TMCSmartPtr (const TMCSmartPtr &ptr) | |
| TMCSmartPtr & | operator= (const TMCSmartPtr &fromSmart) |
TMCSmartPtr<TMCOffscreen> offscreen; offscreen= TMCOffscreen::Create(width, height, bitDepth);
| TMCSmartPtr< T >::TMCSmartPtr | ( | const TMCSmartPtr< T > & | ptr | ) | [inline, private] |
| TMCSmartPtr< T >::TMCSmartPtr | ( | T * | ptr = NULL |
) | [inline] |
| TMCSmartPtr< T >::~TMCSmartPtr | ( | ) | [inline] |
| TMCSmartPtr& TMCSmartPtr< T >::operator= | ( | const TMCSmartPtr< T > & | fromSmart | ) | [inline, private] |
| T* TMCSmartPtr< T >::operator= | ( | T * | ptr | ) | [inline] |
Reimplemented from TMCPtr< T >.
| void TMCSmartPtr< T >::Allocate | ( | ) | [inline] |
| void TMCSmartPtr< T >::CopyObjectFrom | ( | const TMCSmartPtr< T > & | fromSmart | ) | [inline] |
Creates a copy of the object pointed to by fromSmart and points to it. The previous object pointed by this will be deleted.
| fromSmart | a pointer to the object that will be copied |
| void TMCSmartPtr< T >::TransferObjectFrom | ( | TMCSmartPtr< T > & | fromSmart | ) | [inline] |
Transfers the pointed object from fromSmart to this and sets fromSmart to null
| fromSmart | the pointer to acquire |
| void TMCSmartPtr< T >::SetToNullWithoutDeleting | ( | ) | [inline] |
Sets the internal pointer to NULL without deleting the pointed object. Use this to transfer ownership of the pointed object to a TMCPtrArray But don't forget to call DeleteAndRemoveAll on the array !
| void TMCSmartPtr< T >::AssignWithoutDeleting | ( | T * | lp | ) | [inline] |
Assign a new value to the pointer without deleting the object previously pointed by it.
| lp | The new value of the pointer. |
| TMCSmartPtr* TMCSmartPtr< T >::This | ( | ) | [inline] |
because & has been overriden differently :-(
| static T* TMCSmartPtr< T >::Assign | ( | T ** | pp, | |
| T * | lp | |||
| ) | [inline, static, protected] |
1.5.3