https://mooseframework.inl.gov
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
CompileTimeDerivatives::CTValue< tag, T > Class Template Reference

Constant value. More...

#include <CompileTimeDerivatives.h>

Inheritance diagram for CompileTimeDerivatives::CTValue< tag, T >:
[legend]

Public Types

typedef T ResultType
 

Public Member Functions

 CTValue (const T value)
 
auto operator() () const
 
template<CTTag dtag>
auto D () const
 
std::string print () const
 

Static Public Member Functions

static constexpr int precedence ()
 precedence should reflect C++ operator precedence exactly (higher is binding tighter) More...
 
static constexpr bool leftAssociative ()
 left/right associative property should reflect C++ operator properties exactly More...
 

Protected Attributes

_value
 

Detailed Description

template<CTTag tag, typename T>
class CompileTimeDerivatives::CTValue< tag, T >

Constant value.

Definition at line 285 of file CompileTimeDerivatives.h.

Member Typedef Documentation

◆ ResultType

template<CTTag tag, typename T >
typedef T CompileTimeDerivatives::CTValue< tag, T >::ResultType

Definition at line 289 of file CompileTimeDerivatives.h.

Constructor & Destructor Documentation

◆ CTValue()

template<CTTag tag, typename T >
CompileTimeDerivatives::CTValue< tag, T >::CTValue ( const T  value)
inline

Definition at line 288 of file CompileTimeDerivatives.h.

Member Function Documentation

◆ D()

template<CTTag tag, typename T >
template<CTTag dtag>
auto CompileTimeDerivatives::CTValue< tag, T >::D ( ) const
inline

Definition at line 293 of file CompileTimeDerivatives.h.

294  {
295  return CTNull<ResultType>();
296  }

◆ leftAssociative()

static constexpr bool CompileTimeDerivatives::CTBase::leftAssociative ( )
inlinestaticinherited

left/right associative property should reflect C++ operator properties exactly

Definition at line 31 of file CompileTimeDerivatives.h.

31 { return false; }

◆ operator()()

template<CTTag tag, typename T >
auto CompileTimeDerivatives::CTValue< tag, T >::operator() ( ) const
inline

Definition at line 291 of file CompileTimeDerivatives.h.

◆ precedence()

static constexpr int CompileTimeDerivatives::CTBase::precedence ( )
inlinestaticinherited

precedence should reflect C++ operator precedence exactly (higher is binding tighter)

Definition at line 29 of file CompileTimeDerivatives.h.

29 { return 0; }

◆ print()

template<CTTag tag, typename T >
std::string CompileTimeDerivatives::CTValue< tag, T >::print ( ) const
inline

Definition at line 298 of file CompileTimeDerivatives.h.

298 { return Moose::stringify(_value); }
std::string stringify(const T &t)
conversion to string
Definition: Conversion.h:64

Member Data Documentation

◆ _value

template<CTTag tag, typename T >
T CompileTimeDerivatives::CTValue< tag, T >::_value
protected

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