50 #ifndef _ZOLTAN2_ADAPTER_HPP_ 51 #define _ZOLTAN2_ADAPTER_HPP_ 81 template <
typename User>
168 template <
typename Adapter>
InputTraits< User >::scalar_t scalar_t
virtual size_t getLocalNumIDs() const =0
Returns the number of objects on this process.
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...
virtual int getNumWeightsPerID() const
Returns the number of weights per object. Number of weights per object should be zero or greater...
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.
virtual void getIDsView(const gno_t *&Ids) const =0
Provide a pointer to this process' identifiers.
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
InputTraits< User >::part_t part_t
BaseAdapter defines methods required by all Adapters.
Gathering definitions used in software development.
virtual enum BaseAdapterType adapterType() const =0
Returns the type of adapter.