BCP_proc_id Class Reference

This is an abstract base class that holds the identifier of a process. More...

#include <BCP_message.hpp>

Inheritance diagram for BCP_proc_id:
Inheritance graph
[legend]

List of all members.

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_idclone () const =0
 Create a new process id that describes the same process.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


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

Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1