version 3.3

VRS::WO< T > Class Template Reference

#include <vrs/so.h>

Inheritance diagram for VRS::WO< T >:

VRS::WeakPointerBase

List of all members.

Public Member Functions

 WO ()
 < Weak pointers for shareable objects of type T (T must be derived from class VRS::SharedObj).
 WO (T *obj)
 WO (const WO &wo)
 WO (const SO< T > &so)
WOoperator= (T *obj)
WOoperator= (const WO &wo)
WOoperator= (const SO< T > &so)
template<class S>
WOoperator= (const WO< S > &wo)
bool operator< (const T *obj) const
bool operator< (const WO &wo) const
 operator T * () const
T * operator-> () const
T & operator* () const
template<class S>
 operator WO< S > ()
 operator SO< T > ()

Friends

bool operator< (const T *obj1, const WO &wo2)

template<class T>
class VRS::WO< T >


Constructor & Destructor Documentation

template<class T>
VRS::WO< T >::WO (  )  [inline]

< Weak pointers for shareable objects of type T (T must be derived from class VRS::SharedObj).

template<class T>
VRS::WO< T >::WO ( T *  obj  )  [inline]

template<class T>
VRS::WO< T >::WO ( const WO< T > &  wo  )  [inline]

template<class T>
VRS::WO< T >::WO ( const SO< T > &  so  )  [inline]


Member Function Documentation

template<class T>
WO& VRS::WO< T >::operator= ( T *  obj  )  [inline]

< WO<T> represents a weak pointer for a shared object of type "T" (T must be derived from class VRS::SharedObj). If the assigned object gets destroyed, all weak pointers pointing to this object are set to NULL. The reference counter of the assigned objects will not be modified!

template<class T>
WO& VRS::WO< T >::operator= ( const WO< T > &  wo  )  [inline]

template<class T>
WO& VRS::WO< T >::operator= ( const SO< T > &  so  )  [inline]

template<class T>
template<class S>
WO& VRS::WO< T >::operator= ( const WO< S > &  wo  )  [inline]

template<class T>
bool VRS::WO< T >::operator< ( const T *  obj  )  const [inline]

< Re-assign a new shared object pointer to the weak pointer.

template<class T>
bool VRS::WO< T >::operator< ( const WO< T > &  wo  )  const [inline]

template<class T>
VRS::WO< T >::operator T * (  )  const [inline]

template<class T>
T* VRS::WO< T >::operator-> (  )  const [inline]

template<class T>
T& VRS::WO< T >::operator* (  )  const [inline]

Implicit conversion to "T*" is supported. Weak pointers can be dereferenced using the common operators "->" and "*" for "normal" pointers, too.

template<class T>
template<class S>
VRS::WO< T >::operator WO< S > (  )  [inline]

A weak pointer WO<T> can be converted to a weak pointer WO<S>, if T is derived from S.

template<class T>
VRS::WO< T >::operator SO< T > (  )  [inline]

A weak pointer WO<T> can be converted to a smart pointer SO<S>.


Friends And Related Function Documentation

template<class T>
bool operator< ( const T *  obj1,
const WO< T > &  wo2 
) [friend]

Weak object pointers can be compared.


The documentation for this class was generated from the following file:

Generated on Wed May 23 06:00:30 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact