|
MADNESS
version 0.9
|
Remote counter implementation object. More...
#include <worldref.h>


Public Member Functions | |
| RemoteCounterImpl (const std::shared_ptr< T > &p) | |
| virtual | ~RemoteCounterImpl () |
| const std::shared_ptr< T > & | get_shared () const |
| Shared pointer accessor. More... | |
| virtual void * | key () const |
| Counter key accessor. More... | |
Public Member Functions inherited from madness::detail::RemoteCounterBase | |
| RemoteCounterBase () | |
| virtual | ~RemoteCounterBase () |
| long | use_count () const |
| Remote and local counter accessor. More... | |
| template<typename T > | |
| const std::shared_ptr< T > & | get_shared () const |
| Shared pointer accessor. More... | |
| void | add_ref () |
| Increment the reference count. More... | |
| bool | release () |
| Decrement the reference count. More... | |
Remote counter implementation object.
This class stores a shared pointer in memory to ensure that the referenced object is valid as long as there are outstanding remote references.
| T | The type of the referenced shared_ptr object. |
|
inlineexplicit |
|
inlinevirtual |
|
inline |
Shared pointer accessor.
|
inlinevirtual |
Counter key accessor.
The key is the pointer for which the remote counter is counting references.
Implements madness::detail::RemoteCounterBase.
References madness::tr1::shptr::shared_ptr< T >::get().
1.8.8