G+Smo
24.08.0
Geometry + Simulation Modules
|
The Iterator struct Provides fast read access to the mapper data. The implementation guarantees that no data is copied. Can only be constructed from an optimized gsWeightMapper (see gsWeightMapper::optimize() ) by calling fastTargetToSource or fastSourceToTarget.
Typical usage is Iterator myIter=fastTargetToSource(targetId); for( ; myIter ; ++myIter) { myIter.index(); // source index myIter.weight(); // corresponding weight }
It should be compatible with the std::algoriths. The end marker can be obtained with the end() function.
Note that any modification to the gsWeightMapper after the optimize call invalidates all iterators.
Public Member Functions | |
Iterator | begin () const |
end More... | |
Iterator | end () const |
end More... | |
const indexType & | index () const |
index More... | |
const weightType & | weight () const |
weight More... | |
|
inline |
end
|
inline |
end
|
inline |
index
|
inline |
weight