#include <RandomAccessIndexer.h>

Public Member Functions | |
| void | addID (size_t i) |
| void | finalize () |
| virtual size_t | getIncrement (size_t i) const |
| Given a global id in the underlying vector, return the distance to the next id 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 | getNumLocalElements (Vector::shared_ptr v) const |
| virtual size_t | getSubID (size_t i) const |
| Given a global id in the underlying vector, return the subset global id. | |
| virtual size_t | getSuperID (size_t i) const |
| Given a global id in the SubsetVector, return the corresponding global id in the underlying vector. | |
| virtual bool | isInSub (size_t i) const |
| Given a global id in the underlying vector, this returns true if the global id is in the SubsetVector. | |
| RandomAccessIndexer () | |
Private Attributes | |
| std::map< size_t, size_t > | d_SubToSuper |
| std::map< size_t, size_t > | d_SuperToSub |
Definition at line 11 of file RandomAccessIndexer.h.
|
inline |
Definition at line 19 of file RandomAccessIndexer.h.
|
inline |
Definition at line 20 of file RandomAccessIndexer.h.
References d_SuperToSub.
|
inline |
Definition at line 21 of file RandomAccessIndexer.h.
References d_SubToSuper, and d_SuperToSub.
|
inlinevirtual |
Given a global id in the underlying vector, return the distance to the next id in the SubsetVector.
| [in] | underlyingID | The global ID of the underlying vector |
Implements AMP::LinearAlgebra::VectorIndexer.
Definition at line 34 of file RandomAccessIndexer.h.
References AMP_ASSERT, and d_SuperToSub.
|
pure virtualinherited |
Given a particular underlying vector, compute the number of local elements that are in this mapping.
| [in] | v | A vector |
|
inlinevirtual |
Definition at line 47 of file RandomAccessIndexer.h.
References d_SuperToSub.
|
inlinevirtual |
Given a global id in the underlying vector, return the subset global id.
| [in] | underlyingID | The global ID of the underlying vector |
Implements AMP::LinearAlgebra::VectorIndexer.
Definition at line 45 of file RandomAccessIndexer.h.
References d_SuperToSub.
|
inlinevirtual |
Given a global id in the SubsetVector, return the corresponding global id in the underlying vector.
| [in] | subsetID | The global ID of the SubsetVector |
Implements AMP::LinearAlgebra::VectorIndexer.
Definition at line 46 of file RandomAccessIndexer.h.
References d_SubToSuper.
|
inlinevirtual |
Given a global id in the underlying vector, this returns true if the global id is in the SubsetVector.
| [in] | underlyingID | The global ID of the underlying vector |
Implements AMP::LinearAlgebra::VectorIndexer.
Definition at line 33 of file RandomAccessIndexer.h.
References d_SuperToSub.
|
mutableprivate |
Definition at line 16 of file RandomAccessIndexer.h.
Referenced by finalize(), and getSuperID().
|
mutableprivate |
Definition at line 15 of file RandomAccessIndexer.h.
Referenced by addID(), finalize(), getIncrement(), getNumLocalElements(), getSubID(), and isInSub().
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:43. Comments on this page |