42 #ifndef TPETRA_SRCDISTOBJECTWITHPACK_DECL_HPP
43 #define TPETRA_SRCDISTOBJECTWITHPACK_DECL_HPP
50 #include <Teuchos_Array.hpp>
51 #include <Teuchos_ArrayView.hpp>
74 template<
class Packet,
class LocalOrdinal>
98 pack (
const Teuchos::ArrayView<const LocalOrdinal>& exportLIDs,
99 Teuchos::Array<Packet>& exports,
100 const Teuchos::ArrayView<size_t>& numPacketsPerLID,
101 size_t& constantNumPackets,
Abstract base class for sources of an Import or Export.
virtual ~SrcDistObjectWithPack()
Destructor (declared virtual for memory safety of derived classes).
Abstract base class for objects that can be the source of an Import or Export operation, and that also know how to pack their data to send to the target object.
Sets up and executes a communication plan for a Tpetra DistObject.
virtual void pack(const Teuchos::ArrayView< const LocalOrdinal > &exportLIDs, Teuchos::Array< Packet > &exports, const Teuchos::ArrayView< size_t > &numPacketsPerLID, size_t &constantNumPackets, Distributor &distor) const =0
Pack the object's data for an Import or Export.