#include <message_tag.h>
Public Member Functions | |
MessageTag (int tagvalue=invalid_tag) | |
MessageTag (const MessageTag &other) | |
MessageTag (MessageTag &&other) | |
MessageTag & | operator= (const MessageTag &other) |
MessageTag & | operator= (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 47 of file message_tag.h.
|
inlineexplicit |
Explicit constructor, to discourage using "magic numbers" as tags. Communicator::get_unique_tag is recommended instead.
Definition at line 60 of file message_tag.h.
libMesh::Parallel::MessageTag::MessageTag | ( | const MessageTag & | other | ) |
Copy constructor. Helps Communicator do reference counting on unique tags
Definition at line 41 of file message_tag.C.
References _comm, _tagvalue, and libMesh::Parallel::Communicator::reference_unique_tag().
libMesh::Parallel::MessageTag::MessageTag | ( | MessageTag && | other | ) |
Move constructor. Helps Communicator do reference counting on unique tags
Definition at line 49 of file message_tag.C.
libMesh::Parallel::MessageTag::~MessageTag | ( | ) |
Destructor. Helps Communicator do reference counting on unique tags
Definition at line 34 of file message_tag.C.
References _comm, _tagvalue, and libMesh::Parallel::Communicator::dereference_unique_tag().
|
inlineprivate |
Definition at line 102 of file message_tag.h.
MessageTag & libMesh::Parallel::MessageTag::operator= | ( | const MessageTag & | other | ) |
Copy assignment operator. Helps Communicator do reference counting on unique tags
Definition at line 57 of file message_tag.C.
References _comm, _tagvalue, libMesh::Parallel::Communicator::dereference_unique_tag(), and libMesh::Parallel::Communicator::reference_unique_tag().
MessageTag & libMesh::Parallel::MessageTag::operator= | ( | MessageTag && | other | ) |
Move assignment operator. Helps Communicator do reference counting on unique tags
Definition at line 72 of file message_tag.C.
References _comm, _tagvalue, and libMesh::Parallel::Communicator::dereference_unique_tag().
|
inline |
Definition at line 93 of file message_tag.h.
References _tagvalue.
Referenced by libMesh::Parallel::Communicator::packed_range_probe(), libMesh::Parallel::Communicator::probe(), libMesh::Parallel::Communicator::receive(), libMesh::Parallel::Communicator::send(), and libMesh::Parallel::Communicator::send_receive().
|
friend |
Definition at line 106 of file message_tag.h.
|
private |
Definition at line 99 of file message_tag.h.
Referenced by MessageTag(), operator=(), and ~MessageTag().
|
private |
Definition at line 98 of file message_tag.h.
Referenced by MessageTag(), operator=(), value(), and ~MessageTag().
|
static |
Invalid tag, to allow for default construction.
Definition at line 54 of file message_tag.h.