42 #ifndef TPETRA_PACKABLE_DECL_HPP
43 #define TPETRA_PACKABLE_DECL_HPP
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
53 template <
class T>
class Array;
54 template <
class T>
class ArrayView;
60 #endif // DOXYGEN_SHOULD_SKIP_THIS
97 template<
class Packet,
126 pack (
const Teuchos::ArrayView<const LocalOrdinal>& exportLIDs,
127 Teuchos::Array<Packet>& exports,
128 const Teuchos::ArrayView<size_t>& numPacketsPerLID,
129 size_t& constantNumPackets,
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.
Forward declaration of Tpetra::Packable.
virtual ~Packable()
Destructor (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.