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 |
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.
| 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().
| 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().
| libMesh::Parallel::MessageTag::MessageTag | ( | int | tagvalue, | |
| const Communicator * | comm | |||
| ) | [inline, private] |
Definition at line 187 of file parallel.h.
Member Function Documentation
| int libMesh::Parallel::MessageTag::value | ( | ) | const [inline] |
Definition at line 178 of file parallel.h.
References _tagvalue.
Referenced by libMesh::Parallel::Communicator::probe(), libMesh::Parallel::Communicator::receive(), libMesh::Parallel::Communicator::send(), and libMesh::Parallel::Communicator::send_receive().
00178 { 00179 return _tagvalue; 00180 }
Friends And Related Function Documentation
friend class Communicator [friend] |
Definition at line 191 of file parallel.h.
Member Data Documentation
const Communicator* libMesh::Parallel::MessageTag::_comm [private] |
Definition at line 184 of file parallel.h.
Referenced by MessageTag(), and ~MessageTag().
int libMesh::Parallel::MessageTag::_tagvalue [private] |
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: