Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
Specifier< DATA_TYPE, N, defval > Class Template Reference

Used as an argument to the constructor of the OptionalArg implementation to represent that a specific argument has to be overridden with a given value. More...

#include <OptionalArgs.hxx>

Public Types

typedef Fetcher< DATA_TYPE, N > FetcherType
 Type link to the respective fetcher.
 
typedef DATA_TYPE data_type
 Type of data held internally.
 

Public Member Functions

constexpr Specifier (const DATA_TYPE d)
 Constructor.
 

Static Public Member Functions

static constexpr DATA_TYPE default_value ()
 Default value when the customer does not specify it.
 

Public Attributes

DATA_TYPE d_
 Shuttled argument value.
 

Detailed Description

template<typename DATA_TYPE, int N, DATA_TYPE defval>
class Specifier< DATA_TYPE, N, defval >

Used as an argument to the constructor of the OptionalArg implementation to represent that a specific argument has to be overridden with a given value.

Definition at line 51 of file OptionalArgs.hxx.

Member Typedef Documentation

◆ data_type

template<typename DATA_TYPE , int N, DATA_TYPE defval>
typedef DATA_TYPE Specifier< DATA_TYPE, N, defval >::data_type

Type of data held internally.

Definition at line 64 of file OptionalArgs.hxx.

◆ FetcherType

template<typename DATA_TYPE , int N, DATA_TYPE defval>
typedef Fetcher<DATA_TYPE, N> Specifier< DATA_TYPE, N, defval >::FetcherType

Type link to the respective fetcher.

Definition at line 62 of file OptionalArgs.hxx.

Constructor & Destructor Documentation

◆ Specifier()

template<typename DATA_TYPE , int N, DATA_TYPE defval>
constexpr Specifier< DATA_TYPE, N, defval >::Specifier ( const DATA_TYPE  d)
inlineconstexpr

Constructor.

Specifies a particular value.

Parameters
dis the value the client tells us.

Definition at line 56 of file OptionalArgs.hxx.

Member Function Documentation

◆ default_value()

template<typename DATA_TYPE , int N, DATA_TYPE defval>
static constexpr DATA_TYPE Specifier< DATA_TYPE, N, defval >::default_value ( )
inlinestaticconstexpr

Default value when the customer does not specify it.

Definition at line 66 of file OptionalArgs.hxx.

Member Data Documentation

◆ d_

template<typename DATA_TYPE , int N, DATA_TYPE defval>
DATA_TYPE Specifier< DATA_TYPE, N, defval >::d_

Shuttled argument value.

Definition at line 71 of file OptionalArgs.hxx.


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