G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
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
 
Iterator end () const
 end
 
const indexType & index () const
 index
 
const weightType & weight () const
 weight
 

Member Function Documentation

◆ begin()

template<class T >
Iterator begin ( ) const
inline

end

Returns
an iterator signaling the end to use in std::algorithm

◆ end()

template<class T >
Iterator end ( ) const
inline

end

Returns
an iterator signaling the end to use in std::algorithm

◆ index()

template<class T >
const indexType & index ( ) const
inline

index

Returns
the index of the current entry

◆ weight()

template<class T >
const weightType & weight ( ) const
inline

weight

Returns
the weight of the current entry