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

Helper class, adds dummy trailing dimension to a reference of a vector object making it a dummy matrix. More...

#include <container_decorators.hpp>

Public Types

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

Public Member Functions

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

Public Attributes

T & data
 

Detailed Description

template<class T>
class C2DDummyLastView< T >

Helper class, adds dummy trailing dimension to a reference of a vector object making it a dummy matrix.

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

Member Typedef Documentation

◆ Index

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

◆ Scalar

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

Constructor & Destructor Documentation

◆ C2DDummyLastView() [1/2]

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

◆ C2DDummyLastView() [2/2]

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

Member Function Documentation

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

Member Data Documentation

◆ data

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

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