10 #ifndef ICARUSALG_UTILITIES_FHICLUTILS_H
11 #define ICARUSALG_UTILITIES_FHICLUTILS_H
17 namespace util::fhicl {
66 template <
typename SeqValueType>
107 template <
typename Optional>
109 (Optional
const& parameter);
149 template <
typename T,
typename Optional>
172 template <
typename SeqValueType>
178 template <
typename T>
179 operator std::vector<T>()
const
186 template <
typename Optional>
187 std::optional<typename Optional::value_type>
190 using Value_t =
typename Optional::value_type;
192 if (!parameter.hasValue())
return std::nullopt;
202 template <
typename T,
typename Optional>
204 { parameter(defValue);
return defValue; }
210 #endif // ICARUSALG_UTILITIES_FHICLUTILS_H
Helper to return a converted sequence from FHiCL configuration.
std::optional< typename Optional::value_type > getOptionalValue(Optional const ¶meter)
Returns the value of an optional parameter as std::optional.
SequenceWrapper(SeqValueType seqValue)