|
Cyclone ISO C++ API Reference Guide
|
The WeakReference class enables you to maintain a weak reference to a DDS reference type. More...
#include "WeakReference.hpp"
Public Types | |
| typedef T | ReferenceType |
Public Member Functions | |
| WeakReference () | |
| WeakReference (const T &t) | |
| bool | expired () |
| T | lock () |
The WeakReference class enables you to maintain a weak reference to a DDS reference type.
The existence of a weak link will not prevent the garbage collection of the reference type.
Definition at line 29 of file WeakReference.hpp.
| typedef T dds::core::WeakReference< T >::ReferenceType |
Definition at line 44 of file WeakReference.hpp.
| dds::core::WeakReference< T >::WeakReference | ( | ) |
Creates a weak reference without an referenced dds object.
| dds::core::WeakReference< T >::WeakReference | ( | const T & | t | ) |
Creates a weak reference for the reference type passed as argument.
| t | dds object the new weak reference will refer to |
| bool dds::core::WeakReference< T >::expired | ( | ) |
Checks whether the underlying reference has been deleted.
| T dds::core::WeakReference< T >::lock | ( | ) |
Gives access to the underlying shared reference.
If the reference has expired the returned object will be referencing 'dds::core::null'.