|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
hybrid.hh
Go to the documentation of this file.
147 static constexpr std::integral_constant< std::size_t, component > access ( SubIndex subIndex, std::integral_constant< std::size_t, 0 > ) { return {}; }
149 static constexpr FlatIndexType< SubIndex > access ( FlatIndexType< SubIndex > subIndex, std::integral_constant< std::size_t, 1 > ) { return subIndex; }
152 static constexpr decltype( auto ) access ( CompositeIndex< _component, _I, _offset, _SI > subIndex, std::integral_constant< std::size_t, i > )
158 using Access = decltype( access( std::declval< SubIndex >(), std::integral_constant< std::size_t, i >() ) );
163 constexpr operator I () const { return (offset + static_cast< FlatIndexType< SubIndex > >( subIndex() )); }
210 f_( CompositeIndex< component, Index, Range::template offset< component >(), std::decay_t< decltype( subIndex ) > >( std::move( subIndex ) ) );
223 Impl::CompositeIndexRangeInnerLoop< CompositeIndexRange< SR... >, F > innerLoop( std::forward< F >( f ) );
static constexpr IntegralRange< std::decay_t< T > > range(T &&from, U &&to) noexcept
constexpr auto size(const T &t)
constexpr void forEach(Range &&range, F &&f)
typename Impl::voider< Types... >::type void_t
virtual void operator()()=0
typename Impl::FlatIndex< Index >::Type FlatIndexType
Definition hybrid.hh:77
STL namespace.
Definition hybrid.hh:86
Definition hybrid.hh:99
static constexpr Index offset(std::integral_constant< std::size_t, i >={})
Definition hybrid.hh:106
std::tuple_element_t< i, std::tuple< SR... > > SubRange
Definition hybrid.hh:103
std::common_type_t< IndexType< SR >... > Index
Definition hybrid.hh:100
Definition hybrid.hh:142
constexpr auto operator[](std::integral_constant< std::size_t, i >) const -> std::enable_if_t< !IsIntegralConstant< Access< i > >::value, Access< i > >
Definition hybrid.hh:166
constexpr CompositeIndex(SubIndex subIndex)
Definition hybrid.hh:161
T forward(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8