MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
hasPV_N< SysEqn_ > Class Template Reference

Checks if the primitive variable N exists. More...

#include <fvcartesiansyseqntraits.h>

Classes

struct  two
 

Public Types

enum  { value = sizeof(test<SysEqn_>(0)) == sizeof(one) }
 

Private Types

typedef char one
 

Static Private Member Functions

template<class SysEqn >
static one test (decltype(&SysEqn::PV->N))
 
template<class SysEqn >
static two test (...)
 

Detailed Description

template<class SysEqn_>
class hasPV_N< SysEqn_ >

Definition at line 55 of file fvcartesiansyseqntraits.h.

Member Typedef Documentation

◆ one

template<class SysEqn_ >
typedef char hasPV_N< SysEqn_ >::one
private

Definition at line 56 of file fvcartesiansyseqntraits.h.

Member Enumeration Documentation

◆ anonymous enum

template<class SysEqn_ >
anonymous enum
Enumerator
value 

Definition at line 67 of file fvcartesiansyseqntraits.h.

67{ value = sizeof(test<SysEqn_>(0)) == sizeof(one) }; // ::value is constexpr true if PV->N exists, else false

Member Function Documentation

◆ test() [1/2]

template<class SysEqn_ >
template<class SysEqn >
static two hasPV_N< SysEqn_ >::test (   ...)
staticprivate

◆ test() [2/2]

template<class SysEqn_ >
template<class SysEqn >
static one hasPV_N< SysEqn_ >::test ( decltype &::->  N)
staticprivate

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