distributed_storage.h
const future & get_local(const size_type i) const
Get local element.
Definition: distributed_storage.h:223
friend struct DelayedSet
Definition: distributed_storage.h:114
void set(size_type i, const value_type &value)
Set element i with value.
Definition: distributed_storage.h:254
void set(size_type i, const future &f)
Set element i with a Future f.
Definition: distributed_storage.h:272
virtual size_type owner(const size_type tile) const =0
Maps tile to the processor that owns it.
container_type::const_accessor const_accessor
Local element const accessor type.
Definition: distributed_storage.h:60
virtual ~DistributedStorage()
Definition: distributed_storage.h:142
Distributed storage container.
Definition: distributed_storage.h:44
DistributedStorage(World &world, size_type max_size, const std::shared_ptr< pmap_interface > &pmap)
Definition: distributed_storage.h:127
madness::ConcurrentHashMap< key_type, future > container_type
Local container type.
Definition: distributed_storage.h:56
Definition: array_impl.cpp:28
madness::WorldObject< DistributedStorage_ > WorldObject_
Base object type.
Definition: distributed_storage.h:48
virtual bool is_local(const size_type tile) const =0
Check that the tile is owned by this process.
Definition: type_traits.h:71
const std::shared_ptr< pmap_interface > & pmap() const
Process map accessor.
Definition: distributed_storage.h:158