$extrastylesheet
#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 |
Encapsulates the MPI tag integers.
Definition at line 173 of file parallel.h.
| 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.
| libMesh::Parallel::MessageTag::MessageTag | ( | const MessageTag & | other | ) | [inline] |
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().
| libMesh::Parallel::MessageTag::~MessageTag | ( | ) | [inline] |
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().
{
if (_comm)
_comm->dereference_unique_tag(_tagvalue);
}
| libMesh::Parallel::MessageTag::MessageTag | ( | int | tagvalue, |
| const Communicator * | comm | ||
| ) | [inline, private] |
Definition at line 210 of file parallel.h.
| int libMesh::Parallel::MessageTag::value | ( | ) | const [inline] |
Definition at line 201 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().
{
return _tagvalue;
}
friend class Communicator [friend] |
Definition at line 214 of file parallel.h.
const Communicator* libMesh::Parallel::MessageTag::_comm [private] |
Definition at line 207 of file parallel.h.
Referenced by MessageTag(), and ~MessageTag().
int libMesh::Parallel::MessageTag::_tagvalue [private] |
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.