libMesh::Parallel::MessageTag Class Reference

#include <parallel.h>

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


class Communicator

Detailed Description

Encapsulates the MPI tag integers.

Definition at line 172 of file parallel.h.

Constructor & Destructor Documentation

libMesh::Parallel::MessageTag::MessageTag ( int  tagvalue = invalid_tag)

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

Definition at line 185 of file parallel.h.

186  : _tagvalue(tagvalue), _comm(NULL) {}
libMesh::Parallel::MessageTag::MessageTag ( const MessageTag other)

Copy constructor. Helps Communicator do reference counting on unique tags

Definition at line 1097 of file parallel_implementation.h.

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

1098  : _tagvalue(other._tagvalue), _comm(other._comm)
1099 {
1100  if (_comm)
1102 }
libMesh::Parallel::MessageTag::~MessageTag ( )

Destructor. Helps Communicator do reference counting on unique tags

Definition at line 1089 of file parallel_implementation.h.

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

1090 {
1091  if (_comm)
1093 }
libMesh::Parallel::MessageTag::MessageTag ( int  tagvalue,
const Communicator comm 

Definition at line 209 of file parallel.h.

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

Member Function Documentation

int libMesh::Parallel::MessageTag::value ( ) const

Friends And Related Function Documentation

friend class Communicator

Definition at line 213 of file parallel.h.

Member Data Documentation

const Communicator* libMesh::Parallel::MessageTag::_comm

Definition at line 206 of file parallel.h.

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

int libMesh::Parallel::MessageTag::_tagvalue

Definition at line 205 of file parallel.h.

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

const int libMesh::Parallel::MessageTag::invalid_tag = INT_MIN

Invalid tag, to allow for default construction.

Definition at line 179 of file parallel.h.

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

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:33 UTC

Hosted By: Logo