| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/so.h>

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) | |
| WO & | operator= (T *obj) |
| WO & | operator= (const WO &wo) |
| WO & | operator= (const SO< T > &so) |
| template<class S> | |
| WO & | operator= (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) |
< Weak pointers for shareable objects of type T (T must be derived from class VRS::SharedObj).
< 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!
| bool VRS::WO< T >::operator< | ( | const T * | obj | ) | const [inline] |
< Re-assign a new shared object pointer to the weak pointer.
| VRS::WO< T >::operator T * | ( | ) | const [inline] |
| T* VRS::WO< T >::operator-> | ( | ) | const [inline] |
| 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.
A weak pointer WO<T> can be converted to a weak pointer WO<S>, if T is derived from S.
A weak pointer WO<T> can be converted to a smart pointer SO<S>.
| bool operator< | ( | const T * | obj1, | |
| const WO< T > & | wo2 | |||
| ) | [friend] |
Weak object pointers can be compared.