Tomographer  v5.2
Tomographer C++ Framework Documentation
Tomographer::Tools::StaticOrDynamic< T_, true, StaticValue_ > Class Template Reference

Template Specialization – see StaticOrDynamic<T_,IsDynamic_,StaticValue_> More...

#include <tomographer/tools/cxxutil.h>

Public Types

typedef T_ T
 Type of the value we are storing. See StaticOrDynamic<T_,IsDynamic_,StaticValue_>::T.
 

Public Member Functions

 StaticOrDynamic ()=delete
 No default constructor.
 
 StaticOrDynamic (T val)
 Constructor which initializes the value to val. More...
 
T value () const
 See StaticOrDynamic<T_,IsDynamic_,StaticValue_>::value()
 
T operator() () const
 See StaticOrDynamic<T_,IsDynamic_,StaticValue_>::operator()()
 

Static Public Attributes

static constexpr bool IsDynamic = true
 Whether this value is flexible at run-time (dynamic), or fixed at compile-time (static).
 

Detailed Description

template<typename T_, T_ StaticValue_>
class Tomographer::Tools::StaticOrDynamic< T_, true, StaticValue_ >

Template Specialization – see StaticOrDynamic<T_,IsDynamic_,StaticValue_>

Specialization for the case if the value is known only at runtime.

Definition at line 201 of file cxxutil.h.

Constructor & Destructor Documentation

§ StaticOrDynamic()

template<typename T_ , T_ StaticValue_>
Tomographer::Tools::StaticOrDynamic< T_, true, StaticValue_ >::StaticOrDynamic ( T  val)
inlineexplicit

Constructor which initializes the value to val.

The stored value may not be subsequently changed.

Definition at line 217 of file cxxutil.h.


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