1#ifndef included_AMP_VectorIndexer
2#define included_AMP_VectorIndexer
33 virtual bool isInSub(
size_t underlyingID )
const = 0;
39 virtual size_t getSubID(
size_t underlyingID )
const = 0;
virtual size_t getSuperID(size_t subsetID) const =0
Given a global id in the SubsetVector, return the corresponding global id in the underlying vector.
virtual size_t getSubID(size_t underlyingID) const =0
Given a global id in the underlying vector, return the subset global id.
virtual bool isInSub(size_t underlyingID) const =0
Given a global id in the underlying vector, this returns true if the global id is in the SubsetVector...
virtual size_t getNumLocalElements(std::shared_ptr< Vector > v) const =0
Given a particular underlying vector, compute the number of local elements that are in this mapping.
virtual size_t getIncrement(size_t underlyingID) const =0
Given a global id in the underlying vector, return the distance to the next id in the SubsetVector.
virtual ~VectorIndexer()
Destructor.