Documentation 6b54b78464
Loading...
Searching...
No Matches
C3DDummyMiddleView< T > Class Template Reference

Helper class, adds dummy middle dimension to a reference of a matrix object making it a dummy 3D array. More...

#include <container_decorators.hpp>

Public Types

using Index = typename T::Index
 
using Scalar = typename T::Scalar
 

Public Member Functions

 C3DDummyMiddleView ()=delete
 
 C3DDummyMiddleView (T &ref)
 
template<class U = T, su2enable_if<!std::is_const< U >::value > = 0>
Scalar & operator() (Index i, Index, Index k) noexcept
 
const Scalar & operator() (Index i, Index, Index k) const noexcept
 

Public Attributes

T & data
 

Detailed Description

template<class T>
class C3DDummyMiddleView< T >

Helper class, adds dummy middle dimension to a reference of a matrix object making it a dummy 3D array.

Note
The constness of the object is derived from the template type, but we allways keep a reference, never a copy of the associated matrix.

Member Typedef Documentation

◆ Index

template<class T >
using C3DDummyMiddleView< T >::Index = typename T::Index

◆ Scalar

template<class T >
using C3DDummyMiddleView< T >::Scalar = typename T::Scalar

Constructor & Destructor Documentation

◆ C3DDummyMiddleView() [1/2]

template<class T >
C3DDummyMiddleView< T >::C3DDummyMiddleView ( )
delete

◆ C3DDummyMiddleView() [2/2]

template<class T >
C3DDummyMiddleView< T >::C3DDummyMiddleView ( T &  ref)
inline

Member Function Documentation

◆ operator()() [1/2]

template<class T >
const Scalar & C3DDummyMiddleView< T >::operator() ( Index  i,
Index  ,
Index  k 
) const
inlinenoexcept

◆ operator()() [2/2]

template<class T >
template<class U = T, su2enable_if<!std::is_const< U >::value > = 0>
Scalar & C3DDummyMiddleView< T >::operator() ( Index  i,
Index  ,
Index  k 
)
inlinenoexcept

Member Data Documentation

◆ data

template<class T >
T& C3DDummyMiddleView< T >::data

The documentation for this class was generated from the following file: