42 #ifndef TPETRA_PACKABLE_DECL_HPP 43 #define TPETRA_PACKABLE_DECL_HPP 49 #include <Teuchos_Array.hpp> 50 #include <Teuchos_ArrayView.hpp> 95 template<
class Packet,
class LocalOrdinal>
123 pack (
const Teuchos::ArrayView<const LocalOrdinal>& exportLIDs,
124 Teuchos::Array<Packet>& exports,
125 const Teuchos::ArrayView<size_t>& numPacketsPerLID,
126 size_t& constantNumPackets,
Namespace Tpetra contains the class and methods constituting the Tpetra library.
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.
virtual ~Packable()
Destructor (declared virtual for memory safety of derived classes).
Sets up and executes a communication plan for a Tpetra DistObject.
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.