BCP_single_id Class Reference

#include <BCP_message_single.hpp>

Inheritance diagram for BCP_single_id:

Inheritance graph
[legend]
Collaboration diagram for BCP_single_id:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BCP_single_id (int id=-1)
 ~BCP_single_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_single_idclone () const
 Create a new process id that describes the same process.

Private Attributes

int _pid

Detailed Description

Definition at line 17 of file BCP_message_single.hpp.


Constructor & Destructor Documentation

BCP_single_id::BCP_single_id ( int  id = -1  )  [inline]

Definition at line 21 of file BCP_message_single.hpp.

Referenced by clone().

BCP_single_id::~BCP_single_id (  )  [inline]

Definition at line 22 of file BCP_message_single.hpp.


Member Function Documentation

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

Definition at line 25 of file BCP_message_single.hpp.

References _pid.

Referenced by operator<().

BCP_single_id* BCP_single_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 26 of file BCP_message_single.hpp.

References _pid, and BCP_single_id().


Member Data Documentation

int BCP_single_id::_pid [private]

Definition at line 19 of file BCP_message_single.hpp.

Referenced by clone(), and pid().


The documentation for this class was generated from the following file:
Generated on Sun Nov 14 14:12:18 2010 for Coin-All by  doxygen 1.4.7