Public Member Functions | Private Attributes | List of all members
fhicl::tuple_detail::ValueHolder< DEFAULTS > Class Template Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/fhiclcpp/v4_06_10/source/fhiclcpp/types/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: