$extrastylesheet
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 173 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 186 of file parallel.h.

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

Copy constructor. Helps Communicator do reference counting on unique tags

Definition at line 1154 of file parallel_implementation.h.

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

  : _tagvalue(other._tagvalue), _comm(other._comm)
{
  if (_comm)
    _comm->reference_unique_tag(_tagvalue);
}

Destructor. Helps Communicator do reference counting on unique tags

Definition at line 1146 of file parallel_implementation.h.

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

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

Definition at line 210 of file parallel.h.

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

Member Function Documentation


Friends And Related Function Documentation

friend class Communicator [friend]

Definition at line 214 of file parallel.h.


Member Data Documentation

Definition at line 207 of file parallel.h.

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

Definition at line 206 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 180 of file parallel.h.


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