PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
inp::Accepts< T > Struct Template Reference

What a field accepts. More...

#include <deckField.h>

Collaboration diagram for inp::Accepts< T >:

Data Fields

std::vector< Tvalues = {}
 Accepted values, or empty when any value is accepted.
 
std::optional< Tmin = std::nullopt
 Lower bound, applied when it is set.
 
std::optional< T > max = std::nullopt
 Upper bound, applied when it is set.
 

Detailed Description

template<class T>
struct inp::Accepts< T >

What a field accepts.

An empty list and unset bounds accept any value. The checks are applied when the field is read, so an invalid deck fails at the point it is read rather than at the point the value is first used.

Definition at line 118 of file deckField.h.

Field Documentation

◆ max

template<class T >
std::optional<T> inp::Accepts< T >::max = std::nullopt

Upper bound, applied when it is set.

Definition at line 127 of file deckField.h.

◆ min

template<class T >
std::optional<T> inp::Accepts< T >::min = std::nullopt

Lower bound, applied when it is set.

Definition at line 124 of file deckField.h.

◆ values

template<class T >
std::vector<T> inp::Accepts< T >::values = {}

Accepted values, or empty when any value is accepted.

Definition at line 121 of file deckField.h.

121{};

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