G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsWeightMapper< T >::Iterator Struct Reference

Detailed Description

template<class T>
struct gismo::gsWeightMapper< T >::Iterator

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...
 

Member Function Documentation

Iterator begin ( ) const
inline

end

Returns
an iterator signaling the end to use in std::algorithm
Iterator end ( ) const
inline

end

Returns
an iterator signaling the end to use in std::algorithm
const indexType& index ( ) const
inline

index

Returns
the index of the current entry
const weightType& weight ( ) const
inline

weight

Returns
the weight of the current entry