Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_Details_MpiCommRequest.cpp
1 // @HEADER
2 // *****************************************************************************
3 // Teuchos: Common Tools Package
4 //
5 // Copyright 2004 NTESS and the Teuchos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #include <Teuchos_Details_MpiCommRequest.hpp>
11 
12 namespace Teuchos {
13 namespace Details {
14 
15 MpiCommRequest::
16 MpiCommRequest (MPI_Request rawMpiRequest,
17  const ArrayRCP<const char>& buffer) :
18  MpiCommRequestBase<int> (rawMpiRequest),
19  buffer_ (buffer)
20 {}
21 
23 
25 mpiCommRequest (MPI_Request rawMpiRequest,
26  const ArrayRCP<const char>& buffer)
27 {
28  return rcp (new MpiCommRequest (rawMpiRequest, buffer));
29 }
30 
31 } // namespace Details
32 } // namespace Teuchos
33 
MPI implementation of CommRequest&lt;int&gt;.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
virtual ~MpiCommRequest()
Destructor; cancels the request if it is still pending.
Smart reference counting pointer class for automatic garbage collection.