50 #ifndef _ZOLTAN2_ADAPTER_HPP_ 51 #define _ZOLTAN2_ADAPTER_HPP_ 100 template <
typename User>
122 virtual void getIDsView(
const gno_t *&Ids)
const = 0;
173 template <
typename Adapter>
InputTraits< User >::scalar_t scalar_t
InputTraits< User >::gno_t gno_t
InputTraits< User >::lno_t lno_t
#define Z2_THROW_NOT_IMPLEMENTED
Defines the PartitioningSolution class.
void getPartsView(const part_t *&inputPart) const
Provide pointer to an array containing the input part assignment for each ID. The input part informat...
void applyPartitioningSolution(const User &in, User *&out, const PartitioningSolution< Adapter > &solution) const
Apply a PartitioningSolution to an input.
virtual ~BaseAdapter()
Destructor.
virtual void getWeightsView(const scalar_t *&wgt, int &stride, int idx=0) const
Provide pointer to a weight array with stride.
A PartitioningSolution is a solution to a partitioning problem.
BaseAdapterType
An enum to identify general types of adapters.
identifier data, just a list of IDs
virtual ~BaseAdapterRoot()
BaseAdapter defines methods required by all Adapters.
InputTraits< User >::part_t part_t
virtual size_t getLocalNumIDs() const =0
Returns the number of objects on this process.
Gathering definitions used in software development.
virtual int getNumWeightsPerID() const
Returns the number of weights per object. Number of weights per object should be zero or greater...