KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::GetScalar< Type > Struct Template Reference

Get scalar type from Dune (-> field_type) or Kaskade (-> Scalar) member. More...

#include <duneInterface.hh>

Classes

struct  ExtractScalar
struct  ExtractScalar< LocalType, false, true >
struct  ExtractScalar< LocalType, true, hasFieldType_ >
struct  TypeNotFound

Public Types

typedef ExtractScalar< Type,!std::is_same< decltype(hasScalar< Type >(0)), TypeNotFound >::value,!std::is_same< decltype(hasFieldType< Type >(0)), TypeNotFound >::value >::type type

Static Public Member Functions

template<class LocalType>
static LocalType::field_type hasFieldType (typename LocalType::field_type)
template<class LocalType>
static TypeNotFound hasFieldType (...)
template<class LocalType>
static LocalType::Scalar hasScalar (typename LocalType::Scalar)
template<class LocalType>
static TypeNotFound hasScalar (...)

Detailed Description

template<class Type>
struct Kaskade::GetScalar< Type >

Get scalar type from Dune (-> field_type) or Kaskade (-> Scalar) member.

Definition at line 65 of file duneInterface.hh.

Member Typedef Documentation

◆ type

template<class Type>
typedef ExtractScalar<Type,!std::is_same<decltype(hasScalar<Type>(0)),TypeNotFound>::value,!std::is_same<decltype(hasFieldType<Type>(0)),TypeNotFound>::value>::type Kaskade::GetScalar< Type >::type

Definition at line 98 of file duneInterface.hh.

Member Function Documentation

◆ hasFieldType() [1/2]

template<class Type>
template<class LocalType>
TypeNotFound Kaskade::GetScalar< Type >::hasFieldType ( ...)
static

◆ hasFieldType() [2/2]

template<class Type>
template<class LocalType>
LocalType::field_type Kaskade::GetScalar< Type >::hasFieldType ( typename LocalType::field_type )
static

◆ hasScalar() [1/2]

template<class Type>
template<class LocalType>
TypeNotFound Kaskade::GetScalar< Type >::hasScalar ( ...)
static

◆ hasScalar() [2/2]

template<class Type>
template<class LocalType>
LocalType::Scalar Kaskade::GetScalar< Type >::hasScalar ( typename LocalType::Scalar )
static

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