#include <BCP_message_mpi.hpp>
Inheritance diagram for BCP_mpi_id:
Public Member Functions | |
BCP_mpi_id (int id=0) | |
~BCP_mpi_id () | |
bool | is_same_process (const BCP_proc_id *other_process) const |
This query method determines whether the current process is the same as the one given in the argument. | |
int | pid () const |
BCP_proc_id * | clone () const |
Create a new process id that describes the same process. | |
Public Attributes | |
int | _pid |
Definition at line 12 of file BCP_message_mpi.hpp.
BCP_mpi_id::BCP_mpi_id | ( | int | id = 0 |
) | [inline] |
BCP_mpi_id::~BCP_mpi_id | ( | ) | [inline] |
Definition at line 18 of file BCP_message_mpi.hpp.
bool BCP_mpi_id::is_same_process | ( | const BCP_proc_id * | other_process | ) | const [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.
Implements BCP_proc_id.
int BCP_mpi_id::pid | ( | ) | const [inline] |
BCP_proc_id* BCP_mpi_id::clone | ( | ) | const [inline, 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.
Implements BCP_proc_id.
Definition at line 22 of file BCP_message_mpi.hpp.
References _pid, and BCP_mpi_id().
int BCP_mpi_id::_pid |