LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
fhicl::tuple_detail::ValueHolder< DEFAULTS > Class Template Reference

#include "Tuple.h"

Public Member Functions

 ValueHolder (DEFAULTS...defaults)
 
 ValueHolder (std::tuple< DEFAULTS... > const &tup)
 
template<std::size_t I>
auto const & get () const
 

Private Attributes

std::tuple< DEFAULTS... > holder_
 

Detailed Description

template<typename... DEFAULTS>
class fhicl::tuple_detail::ValueHolder< DEFAULTS >

Definition at line 29 of file Tuple.h.

Constructor & Destructor Documentation

template<typename... DEFAULTS>
fhicl::tuple_detail::ValueHolder< DEFAULTS >::ValueHolder ( DEFAULTS...  defaults)
inline

Definition at line 31 of file Tuple.h.

32  : holder_{std::forward_as_tuple(defaults...)}
33  {}
std::tuple< DEFAULTS... > holder_
Definition: Tuple.h:45
template<typename... DEFAULTS>
fhicl::tuple_detail::ValueHolder< DEFAULTS >::ValueHolder ( std::tuple< DEFAULTS... > const &  tup)
inline

Definition at line 35 of file Tuple.h.

35 : holder_{tup} {}
std::tuple< DEFAULTS... > holder_
Definition: Tuple.h:45

Member Function Documentation

template<typename... DEFAULTS>
template<std::size_t I>
auto const& fhicl::tuple_detail::ValueHolder< DEFAULTS >::get ( ) const
inline

Definition at line 39 of file Tuple.h.

References fhicl::tuple_detail::ValueHolder< DEFAULTS >::holder_.

40  {
41  return std::get<I>(holder_);
42  }
std::tuple< DEFAULTS... > holder_
Definition: Tuple.h:45

Member Data Documentation

template<typename... DEFAULTS>
std::tuple<DEFAULTS...> fhicl::tuple_detail::ValueHolder< DEFAULTS >::holder_
private

Definition at line 45 of file Tuple.h.

Referenced by fhicl::tuple_detail::ValueHolder< DEFAULTS >::get().


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