MADNESS  version 0.9
Public Member Functions | Friends | List of all members
madness::AmArg Class Reference

World active message that extends an RMI message. More...

#include <worldam.h>

Public Member Functions

 AmArg ()
 
unsigned char * buf () const
 Returns a pointer to the user's payload (aligned in same way as AmArg) More...
 
std::size_t size () const
 Returns the size of the user's payload. More...
 
template<typename T >
archive::BufferInputArchive operator& (T &t) const
 Used to deserialize arguments from incoming message. More...
 
template<typename T >
archive::BufferOutputArchive operator& (const T &t) const
 Used to serialize arguments into outgoing message. More...
 
ProcessID get_src () const
 For incoming AM gives the source process. More...
 
Worldget_world () const
 For incoming AM gives the associated world. More...
 
unsigned long get_worldid () const
 Return the world id. More...
 

Friends

class WorldAmInterface
 
template<class Derived >
class WorldObject
 
AmArgalloc_am_arg (std::size_t nbyte)
 Allocates a new AmArg with nbytes of user data ... delete with free_am_arg. More...
 

Detailed Description

World active message that extends an RMI message.

Constructor & Destructor Documentation

madness::AmArg::AmArg ( )
inline

Member Function Documentation

unsigned char* madness::AmArg::buf ( ) const
inline

Returns a pointer to the user's payload (aligned in same way as AmArg)

ProcessID madness::AmArg::get_src ( ) const
inline

For incoming AM gives the source process.

World* madness::AmArg::get_world ( ) const
inline

For incoming AM gives the associated world.

References madness::World::world_from_id().

unsigned long madness::AmArg::get_worldid ( ) const
inline

Return the world id.

template<typename T >
archive::BufferInputArchive madness::AmArg::operator& ( T &  t) const
inline

Used to deserialize arguments from incoming message.

template<typename T >
archive::BufferOutputArchive madness::AmArg::operator& ( const T &  t) const
inline

Used to serialize arguments into outgoing message.

std::size_t madness::AmArg::size ( ) const
inline

Returns the size of the user's payload.

Referenced by madness::copy_am_arg().

Friends And Related Function Documentation

AmArg* alloc_am_arg ( std::size_t  nbyte)
friend

Allocates a new AmArg with nbytes of user data ... delete with free_am_arg.

friend class WorldAmInterface
friend
template<class Derived >
friend class WorldObject
friend

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