Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::ServiceTable< T > Class Template Reference

#include <ServiceTable.h>

Inheritance diagram for art::ServiceTable< T >:
fhicl::ConfigurationTable

Public Member Functions

 ServiceTable (fhicl::Name &&name)
 
 ServiceTable (fhicl::ParameterSet const &pset)
 
fhicl::ParameterSet const & get_PSet () const
 
void print_allowed_configuration (std::ostream &os, std::string const &prefix) const
 
auto const & operator() () const
 
- Public Member Functions inherited from fhicl::ConfigurationTable
virtual ~ConfigurationTable ()=default
 
cet::exempt_ptr< fhicl::detail::ParameterBase const > parameter_base () const
 

Private Member Functions

cet::exempt_ptr< fhicl::detail::ParameterBase const > get_parameter_base () const override
 

Private Attributes

fhicl::Table< T > config_
 

Detailed Description

template<typename T>
class art::ServiceTable< T >

Definition at line 25 of file ServiceTable.h.

Constructor & Destructor Documentation

template<typename T>
art::ServiceTable< T >::ServiceTable ( fhicl::Name &&  name)
inlineexplicit

Definition at line 28 of file ServiceTable.h.

28 : config_{std::move(name)} {}
fhicl::Table< T > config_
Definition: ServiceTable.h:66
def move(depos, offset)
Definition: depos.py:107
template<typename T>
art::ServiceTable< T >::ServiceTable ( fhicl::ParameterSet const &  pset)
inline

Definition at line 30 of file ServiceTable.h.

31  : config_{fhicl::Name{"<service>"}}
32  {
33  std::set<std::string> const keys_to_ignore{"service_type",
34  "service_provider"};
35  config_.validate(pset, keys_to_ignore);
36  }
fhicl::Table< T > config_
Definition: ServiceTable.h:66
void validate(ParameterSet const &pset, std::set< std::string > const &keysToIgnore={})
Definition: Table.h:195

Member Function Documentation

template<typename T>
cet::exempt_ptr<fhicl::detail::ParameterBase const> art::ServiceTable< T >::get_parameter_base ( ) const
inlineoverrideprivatevirtual

Implements fhicl::ConfigurationTable.

Definition at line 60 of file ServiceTable.h.

61  {
62  return &config_;
63  }
fhicl::Table< T > config_
Definition: ServiceTable.h:66
template<typename T>
fhicl::ParameterSet const& art::ServiceTable< T >::get_PSet ( ) const
inline

Definition at line 40 of file ServiceTable.h.

41  {
42  return config_.get_PSet();
43  }
fhicl::Table< T > config_
Definition: ServiceTable.h:66
ParameterSet const & get_PSet() const
Definition: Table.h:68
template<typename T>
auto const& art::ServiceTable< T >::operator() ( ) const
inline

Definition at line 53 of file ServiceTable.h.

54  {
55  return config_();
56  }
fhicl::Table< T > config_
Definition: ServiceTable.h:66
template<typename T>
void art::ServiceTable< T >::print_allowed_configuration ( std::ostream &  os,
std::string const &  prefix 
) const
inline

Definition at line 46 of file ServiceTable.h.

48  {
50  }
void print_allowed_configuration(std::ostream &os, std::string const &tab=std::string(3, ' ')) const
Definition: Table.h:213
fhicl::Table< T > config_
Definition: ServiceTable.h:66

Member Data Documentation

template<typename T>
fhicl::Table<T> art::ServiceTable< T >::config_
private

Definition at line 66 of file ServiceTable.h.


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