Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
CorePointerHandler< T > Class Template Reference

RAII Helper class to help lifetime manageent of static objects, allowing their automatic destruction at the end. Objects must have been allocated with new(). Keep a CorePointerHandler (ex: in a class member vector) containing static object pointer to enable the static object destruction with CorePointerHandler's. More...

Public Member Functions

 CorePointerHandler (T *object)
 
 CorePointerHandler (const CorePointerHandler &)=delete
 
 CorePointerHandler (CorePointerHandler &&)=delete
 
CorePointerHandleroperator= (const CorePointerHandler &)=delete
 
CorePointerHandleroperator= (CorePointerHandler &&)=delete
 
T & operator* ()
 
const T & operator* () const
 
T * operator-> ()
 
const T * operator-> () const
 

Detailed Description

template<class T>
class CorePointerHandler< T >

RAII Helper class to help lifetime manageent of static objects, allowing their automatic destruction at the end. Objects must have been allocated with new(). Keep a CorePointerHandler (ex: in a class member vector) containing static object pointer to enable the static object destruction with CorePointerHandler's.