MADNESS
version 0.9
|
Remote reference counter. More...
#include <worldref.h>
Public Member Functions | |
RemoteCounter () | |
RemoteCounter (const RemoteCounter &other) | |
template<typename T > | |
RemoteCounter (World &w, const std::shared_ptr< T > &p) | |
~RemoteCounter () | |
RemoteCounter & | operator= (const RemoteCounter &other) |
long | use_count () const |
Counter accessor. More... | |
bool | unique () const |
bool | empty () const |
bool | is_local () const |
bool | has_owner () const |
ProcessID | owner () const |
template<typename T > | |
const std::shared_ptr< T > & | get_shared () const |
WorldPtr< implT >::worldidT | get_worldid () const |
World & | get_world () const |
void | swap (RemoteCounter &other) |
Friends | |
template<typename , typename > | |
struct | archive::ArchiveLoadImpl |
template<typename , typename > | |
struct | archive::ArchiveStoreImpl |
Remote reference counter.
Automatically counts local and remote references to an object. The reference count is incremented when the object is copied locally or serialized as part of communication.
|
inline |
|
inline |
References madness::detail::WorldPtr< T >::is_local().
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
References std::tr1::T().
Referenced by madness::RemoteReference< FutureImpl< REMFUTURE(MEMFUN_RETURNT(memfunT)) > >::get_shared().
|
inline |
References madness::detail::WorldPtr< T >::get_worldid().
Referenced by madness::detail::operator<<().
|
inline |
|
inline |
References madness::detail::WorldPtr< T >::is_local().
Referenced by madness::RemoteReference< FutureImpl< REMFUTURE(MEMFUN_RETURNT(memfunT)) > >::get(), madness::RemoteReference< FutureImpl< REMFUTURE(MEMFUN_RETURNT(memfunT)) > >::get_shared(), madness::RemoteReference< FutureImpl< REMFUTURE(MEMFUN_RETURNT(memfunT)) > >::is_local(), madness::RemoteReference< FutureImpl< REMFUTURE(MEMFUN_RETURNT(memfunT)) > >::operator*(), madness::RemoteReference< FutureImpl< REMFUTURE(MEMFUN_RETURNT(memfunT)) > >::operator->(), and madness::RemoteReference< FutureImpl< REMFUTURE(MEMFUN_RETURNT(memfunT)) > >::reset().
|
inline |
|
inline |
|
inline |
References madness::detail::swap().
Referenced by madness::detail::swap().
|
inline |
References use_count().
Referenced by madness::RemoteReference< FutureImpl< REMFUTURE(MEMFUN_RETURNT(memfunT)) > >::unique().
|
inline |
Counter accessor.
none |
References madness::detail::WorldPtr< T >::is_local().
Referenced by madness::detail::operator<<(), unique(), and madness::RemoteReference< FutureImpl< REMFUTURE(MEMFUN_RETURNT(memfunT)) > >::use_count().
|
friend |
|
friend |