Private Member Functions | List of all members
fhicl::PrinterFor< T > Class Template Reference

#include <Printer.h>

Inheritance diagram for fhicl::PrinterFor< T >:
fhicl::Printer

Private Member Functions

void do_atomic_print (fhicl::ParameterSet const &pset, std::string const &key) const
 
void do_sequence_print (fhicl::ParameterSet const &pset, std::string const &key) const
 

Additional Inherited Members

- Public Member Functions inherited from fhicl::Printer
virtual ~Printer ()=default
 
void print_as_atom (fhicl::ParameterSet const &pset, std::string const &key) const
 
void print_as_sequence (fhicl::ParameterSet const &pset, std::string const &key) const
 

Detailed Description

template<typename T>
class fhicl::PrinterFor< T >

Definition at line 39 of file Printer.h.

Member Function Documentation

template<typename T >
void fhicl::PrinterFor< T >::do_atomic_print ( fhicl::ParameterSet const &  pset,
std::string const &  key 
) const
inlineprivatevirtual

Implements fhicl::Printer.

Definition at line 41 of file Printer.h.

43  {
44  std::cout << pset.get<T>(key) << '\n';
45  }
def key(type, name=None)
Definition: graph.py:13
template<typename T >
void fhicl::PrinterFor< T >::do_sequence_print ( fhicl::ParameterSet const &  pset,
std::string const &  key 
) const
inlineprivatevirtual

Implements fhicl::Printer.

Definition at line 48 of file Printer.h.

50  {
51  auto const entries = pset.get<std::vector<T>>(key);
52  for (auto const& entry : entries) {
53  std::cout << entry << '\n';
54  }
55  }
QList< Entry > entry
def key(type, name=None)
Definition: graph.py:13

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