MADNESS 0.10.1
Array Class Reference
Inheritance diagram for Array:
Collaboration diagram for Array:

Public Member Functions

 Array (World &world, size_t size)
 Make block distributed array with size elements.
 Array (World &world, size_t size)
 Make block distributed array with size elements.
 Array (World &world, size_t size)
 Make block distributed array with size elements.
 Array (World &world, size_t size)
 Make block distributed array with size elements.
virtual ~Array ()
ProcessID owner (size_t i) const
 Return the process in which element i resides.
ProcessID owner (size_t i) const
 Return the process in which element i resides.
ProcessID owner (size_t i) const
 Return the process in which element i resides.
ProcessID owner (size_t i) const
 Return the process in which element i resides.
Future< double > read (size_t i) const
 Read element i.
Future< double > read (size_t i) const
 Read element i.
Future< double > read (size_t i) const
Future< double > read (size_t i) const
 Read element i.
void write (size_t i, double value)
 Write element i.
void write (size_t i, double value)
 Write element i.
void write (size_t i, double value)
void write (size_t i, double value)
 Write element i.
Public Member Functions inherited from madness::WorldObject< Array >
 WorldObject (const WorldObject &other)
virtual ~WorldObject ()
WorldObject & operator= (const WorldObject &)=delete
detail::task_result_type< memfnT >::futureT send (ProcessID dest, memfnT memfn) const
detail::task_result_type< memfnT >::futureT task (ProcessID dest, memfnT memfn, const TaskAttributes &attr=TaskAttributes()) const
 Sends task to derived class method returnT (this->*memfn)().
Public Member Functions inherited from madness::WorldObjectBase
virtual ~WorldObjectBase ()
World & get_world () const
World & get_world_noexcept () const noexcept
 Get the world to which this object belongs, without risking a throw.
const uniqueidT & id () const
 Returns the globally unique object ID.
bool world_is_alive () const noexcept
 Reports whether the world to which this object belongs still exists.

Private Attributes

vector< double > v

Additional Inherited Members

Public Types inherited from madness::WorldObject< Array >
typedef WorldObject< Array > objT
Protected Member Functions inherited from madness::WorldObject< Array >
void process_pending ()
 To be called from derived constructor to process pending messages.
Protected Member Functions inherited from madness::WorldObjectBase
 WorldObjectBase (const WorldObjectBase &other)
 Copy constructor; produces an unregistered object.
 WorldObjectBase (World &w)
 Construct a new WorldObjectBase.
World & get_world_unchecked () const noexcept
 Unchecked access to the memoized world reference.
template<typename DerivedT>
void register_self (DerivedT *this_ptr)
 Registers this object with its world, making it globally addressable.

Constructor & Destructor Documentation

◆ Array() [1/4]

Array::Array ( World & world,
size_t size )
inline

◆ Array() [2/4]

Array::Array ( World & world,
size_t size )
inline

◆ Array() [3/4]

Array::Array ( World & world,
size_t size )
inline

◆ Array() [4/4]

Array::Array ( World & world,
size_t size )
inline

◆ ~Array()

virtual Array::~Array ( )
inlinevirtual

Member Function Documentation

◆ owner() [1/4]

ProcessID Array::owner ( size_t i) const
inline

Return the process in which element i resides.

References v.

Referenced by read(), and write().

◆ owner() [2/4]

ProcessID Array::owner ( size_t i) const
inline

Return the process in which element i resides.

References v.

◆ owner() [3/4]

ProcessID Array::owner ( size_t i) const
inline

Return the process in which element i resides.

References v.

◆ owner() [4/4]

ProcessID Array::owner ( size_t i) const
inline

Return the process in which element i resides.

References v.

◆ read() [1/4]

Future< double > Array::read ( size_t i) const
inline

Read element i.

References owner(), read(), madness::WorldObject< Array >::send(), v, and madness::WorldObjectBase::world.

Referenced by main(), and read().

◆ read() [2/4]

Future< double > Array::read ( size_t i) const
inline

◆ read() [3/4]

Future< double > Array::read ( size_t i) const
inline

◆ read() [4/4]

Future< double > Array::read ( size_t i) const
inline

◆ write() [1/4]

void Array::write ( size_t i,
double value )
inline

◆ write() [2/4]

void Array::write ( size_t i,
double value )
inline

◆ write() [3/4]

◆ write() [4/4]

void Array::write ( size_t i,
double value )
inline

Member Data Documentation

◆ v

vector< double > Array::v
private

Referenced by Array(), owner(), read(), and write().


The documentation for this class was generated from the following files: