2005/5/9

     
 

class StaticObjectWrapper

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::sys::StaticObjectWrapper< T, RT > Class Template Reference
[SmartPointers and Garbage Collection]

#include <StaticObjectWrapper.h>

List of all members.


Detailed Description

template<class T, class RT>
class acdk::lang::sys::StaticObjectWrapper< T, RT >

In case an Object has to be defined statically, this class helps to manage initialization and deinitialion order.

See also:
ACDK_STATIC_INSTANCE0, ACDK_STATIC_INSTANCE1, etc. T has to be a type of RObject or RInterface


Public Member Functions

 StaticObjectWrapper ()
bool isCreated () const
 operator RT & ()

Private Attributes

RT _var


Constructor & Destructor Documentation

template<class T, class RT>
acdk::lang::sys::StaticObjectWrapper< T, RT >::StaticObjectWrapper  )  [inline]
 


Member Function Documentation

template<class T, class RT>
bool acdk::lang::sys::StaticObjectWrapper< T, RT >::isCreated  )  const [inline]
 

template<class T, class RT>
acdk::lang::sys::StaticObjectWrapper< T, RT >::operator RT &  )  [inline]
 


Member Data Documentation

template<class T, class RT>
RT acdk::lang::sys::StaticObjectWrapper< T, RT >::_var [private]