BCP_pvm_id Class Reference

#include <BCP_message_pvm.hpp>

Inheritance diagram for BCP_pvm_id:

Inheritance graph
[legend]
Collaboration diagram for BCP_pvm_id:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Attributes

int _pid

Detailed Description

Definition at line 10 of file BCP_message_pvm.hpp.


Constructor & Destructor Documentation

BCP_pvm_id::BCP_pvm_id ( int  id = 0  )  [inline]

Definition at line 14 of file BCP_message_pvm.hpp.

Referenced by clone().

BCP_pvm_id::~BCP_pvm_id (  )  [inline]

Definition at line 15 of file BCP_message_pvm.hpp.


Member Function Documentation

bool BCP_pvm_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_pvm_id::pid (  )  const [inline]

Definition at line 18 of file BCP_message_pvm.hpp.

References _pid.

BCP_proc_id* BCP_pvm_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 19 of file BCP_message_pvm.hpp.

References _pid, and BCP_pvm_id().


Member Data Documentation

int BCP_pvm_id::_pid [private]

Definition at line 12 of file BCP_message_pvm.hpp.

Referenced by clone(), and pid().


The documentation for this class was generated from the following file:
Generated on Wed Aug 22 03:02:54 2007 for coin-Bcp by  doxygen 1.4.7