libMesh::Parallel::MessageTag Class Reference

#include <parallel.h>

List of all members.

Public Member Functions

 MessageTag (int tagvalue=invalid_tag)
 MessageTag (const MessageTag &other)
 ~MessageTag ()
int value () const

Static Public Attributes

static const int invalid_tag = INT_MIN

Private Member Functions

 MessageTag (int tagvalue, const Communicator *comm)

Private Attributes

int _tagvalue
const Communicator_comm

Friends

class Communicator

Detailed Description

Encapsulates the MPI tag integers.

Definition at line 150 of file parallel.h.


Constructor & Destructor Documentation

libMesh::Parallel::MessageTag::MessageTag ( int  tagvalue = invalid_tag  )  [inline, explicit]

Explicit constructor, to discourage using "magic numbers" as tags. Communicator::get_unique_tag is recommended instead.

Definition at line 163 of file parallel.h.

00164       : _tagvalue(tagvalue), _comm(NULL) {}

libMesh::Parallel::MessageTag::MessageTag ( const MessageTag other  )  [inline]

Copy constructor. Helps Communicator do reference counting on unique tags

Definition at line 1062 of file parallel_implementation.h.

References _comm, _tagvalue, and libMesh::Parallel::Communicator::reference_unique_tag().

01063   : _tagvalue(other._tagvalue), _comm(other._comm)
01064 {
01065   if (_comm)
01066     _comm->reference_unique_tag(_tagvalue);
01067 }

libMesh::Parallel::MessageTag::~MessageTag (  )  [inline]

Destructor. Helps Communicator do reference counting on unique tags

Definition at line 1054 of file parallel_implementation.h.

References _comm, _tagvalue, and libMesh::Parallel::Communicator::dereference_unique_tag().

01055 {
01056   if (_comm)
01057     _comm->dereference_unique_tag(_tagvalue);
01058 }

libMesh::Parallel::MessageTag::MessageTag ( int  tagvalue,
const Communicator comm 
) [inline, private]

Definition at line 187 of file parallel.h.

00188       : _tagvalue(tagvalue), _comm(comm) {}


Member Function Documentation

int libMesh::Parallel::MessageTag::value (  )  const [inline]

Friends And Related Function Documentation

friend class Communicator [friend]

Definition at line 191 of file parallel.h.


Member Data Documentation

Definition at line 184 of file parallel.h.

Referenced by MessageTag(), and ~MessageTag().

Definition at line 183 of file parallel.h.

Referenced by MessageTag(), value(), and ~MessageTag().

const int libMesh::Parallel::MessageTag::invalid_tag = INT_MIN [static]

Invalid tag, to allow for default construction.

Definition at line 157 of file parallel.h.


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

Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:44 UTC

Hosted By:
SourceForge.net Logo