Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Encapsulation of a pending nonblocking communication operation. More...
#include <Teuchos_Comm.hpp>
Public Member Functions | |
virtual | ~CommRequest () |
Destructor; cancels the request if it is still pending. More... | |
virtual RCP< CommStatus < OrdinalType > > | wait ()=0 |
Wait on this request (a blocking operation). More... | |
Public Member Functions inherited from Teuchos::Describable | |
virtual std::string | description () const |
Return a simple one-line description of this object. More... | |
virtual void | describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
Print the object with some verbosity level to a FancyOStream. More... | |
void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
Version of describe() that takes an std::ostream instead of a FancyOStream. More... | |
virtual | ~Describable () |
Destructor (marked virtual for memory safety of derived classes). More... | |
Public Member Functions inherited from Teuchos::LabeledObject | |
LabeledObject () | |
Construct with an empty label. More... | |
virtual | ~LabeledObject () |
virtual void | setObjectLabel (const std::string &objectLabel) |
Set the object label (see LabeledObject). More... | |
virtual std::string | getObjectLabel () const |
Get the object label (see LabeledObject). More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Teuchos::Describable | |
static const EVerbosityLevel | verbLevel_default = VERB_DEFAULT |
Default value for the verbLevel argument of describe(). More... | |
Related Functions inherited from Teuchos::Describable | |
DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
Describable output stream manipulator. More... | |
std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
Output stream operator for Describable manipulator. More... | |
Encapsulation of a pending nonblocking communication operation.
OrdinalType | Same as the template parameter of Comm. |
An instance of (a subclass of) this class represents a nonblocking communication operation, such as a nonblocking send, receive, or collective. To wait on the communication operation, you may give the CommRequest to functions like wait() or waitAll() (which may be found in Teuchos_CommHelpers.hpp). Here is an example of how to use wait().
This object's destructor cancels the request without communication. If you wish, you may rely on this behavior for speculative communication. For example:
CommRequests
that encapsulates a set of requests, so that you can avoid this unpacking and packing. Definition at line 137 of file Teuchos_Comm.hpp.
|
inlinevirtual |
Destructor; cancels the request if it is still pending.
Canceling a communication request must always be a local operation. An MPI implementation may achieve this by first calling MPI_Cancel to cancel the request, then calling MPI_Wait (which behaves as a local operation for a canceled request) to complete the canceled request (as required by the MPI standard).
Definition at line 146 of file Teuchos_Comm.hpp.
|
pure virtual |
Wait on this request (a blocking operation).