namespace alps {
class OMPDump : public ODump
{
public:
OMPDump();
void init();
void send(const Process& p,int32_t tag);
void send(const ProcessList& p,int32_t tag);
};
class IMPDump : public IDump
{
public:
static int32_t probe(int32_t tag=-1);
static int32_t probe(const Process& p, int32_t tag=-1);
IMPDump();
IMPDump(int32_t tag);
IMPDump(const Process& p, int32_t tag);
void init();
const Process& sender() const;
void receive(const Process& p,int32_t tag);
void receive(int32_t tag);
};
}
creates a new buffer into which the message content can be written using the serialization mechanism, and then sent to other nodes.OMPDump();
re-initializes the buffer for a new message.void init();
sends the message previously stored using the serialization mechanism to the given process with the given tag.void send(const Process& p,int32_t tag);
multicasts the message previously stored using the serialization mechanism to the given processes with the given tag.void send(const ProcessList& p,int32_t tag);
probes if a message with a given tag waits to be received. If no tag is given, messages of any tag are probed for. The function returns the tag of any matched message, or 0 if no message is found.static int probe(int32_t tag=-1);
probes if a message with a given tag waits to be received from a given process. If no tag is given, messages of any tag are probed for. The function returns the tag of any matched message, or 0 if no message is found.static int probe(const Process& p, int32_t tag=-1);
creates a new buffer to receive a message.IMPDump();
creates a new buffer and starts a blocking receive for a message with the given tag.IMPDump(int32_t tag);
creates a new buffer and starts a blocking receive for a message with the given tag from the given process.IMPDump(const Process& p, int32_t tag);
reinitializes the buffer for a new message.void init();
returns the process which sent the last succesfully received message. If no message has been received an invalid Process object is returned.const Process& sender() const;
starts a blocking receive for a message from the given process with the given tag.void receive(const Process& p,int32_t tag);
starts a blocking receive for a message from any process with the given tag.void receive(int32_t tag);
copyright (c) 1994-2010 by Matthias Troyer
Distributed under the Boost Software License, Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt)