ork::static_ptr< T > Class Template Reference
[core]

A static pointer to an Object. More...

#include <Object.h>

Inheritance diagram for ork::static_ptr< T >:
ork::ptr< T >

List of all members.

Public Member Functions

 static_ptr ()
 Creates a static pointer pointing to NULL.
 static_ptr (T *target)
 Creates a static pointer to the given object.
 ~static_ptr ()
 Destroys this static pointer.
void operator= (const ptr< T > &v)
 Assigns the given pointer value to this static pointer.

Detailed Description

template<class T>
class ork::static_ptr< T >

A static pointer to an Object.

static_ptr must be used instead of ptr for static variables.


Constructor & Destructor Documentation

template<class T>
ork::static_ptr< T >::static_ptr (  )  [inline]

Creates a static pointer pointing to NULL.

template<class T>
ork::static_ptr< T >::static_ptr ( T *  target  )  [inline, explicit]

Creates a static pointer to the given object.

template<class T>
ork::static_ptr< T >::~static_ptr (  )  [inline]

Destroys this static pointer.


Member Function Documentation

template<class T>
void ork::static_ptr< T >::operator= ( const ptr< T > &  v  )  [inline]

Assigns the given pointer value to this static pointer.


Generated on Mon Oct 18 09:36:07 2010 for ork by  doxygen 1.6.1