This is an abstract base class that holds the identifier of a process. More...
#include <BCP_message.hpp>
Public Member Functions | |
Destructor | |
virtual | ~BCP_proc_id () |
Being virtual, the destructor invokes the destructor for the real type of the object being deleted. | |
Comparing processes | |
virtual bool | is_same_process (const BCP_proc_id *other_process) const =0 |
This query method determines whether the current process is the same as the one given in the argument. | |
Cloning a process | |
virtual BCP_proc_id * | clone () const =0 |
Create a new process id that describes the same process. |
This is an abstract base class that holds the identifier of a process.
The implementation of the message passing protocol must also implement how the processes are identified.
All methods are pure virtual, enforcing the correct overriding of the methods.
Definition at line 29 of file BCP_message.hpp.
virtual BCP_proc_id::~BCP_proc_id | ( | ) | [inline, virtual] |
Being virtual, the destructor invokes the destructor for the real type of the object being deleted.
Definition at line 35 of file BCP_message.hpp.
virtual bool BCP_proc_id::is_same_process | ( | const BCP_proc_id * | other_process | ) | const [pure virtual] |
This query method determines whether the current process is the same as the one given in the argument.
Returns true if the two processes are the same, false otherwise.
virtual BCP_proc_id* BCP_proc_id::clone | ( | ) | const [pure virtual] |
Create a new process id that describes the same process.
Cloning is used instead of the copy constructor since this is an abstract base class.
Implemented in BCP_single_id.