#include <type_traits.h>
Classes | |
struct | Impl |
Public Types | |
using | default_type = T |
using | value_type = T |
Public Member Functions | |
template<typename... TCARGS> | |
Table (Name &&name, TCARGS &&...tcargs) | |
template<typename... TCARGS> | |
Table (Name &&name, Comment &&comment, TCARGS &&...tcargs) | |
template<typename... TCARGS> | |
Table (Name &&name, Comment &&comment, MaybeUseFunction maybeUse, TCARGS &&...tcargs) | |
template<typename K = KeysToIgnore, typename = std::enable_if_t<tt::is_callable<K>::value>> | |
Table (ParameterSet const &pset) | |
template<typename K = KeysToIgnore, typename = std::enable_if_t<!tt::is_callable<K>::value>> | |
Table (ParameterSet const &pset, std::set< std::string > const &keysToIgnore={}) | |
auto const & | operator() () const |
ParameterSet const & | get_PSet () const |
void | validate (ParameterSet const &pset, std::set< std::string > const &keysToIgnore={}) |
void | print_allowed_configuration (std::ostream &os, std::string const &tab=std::string(3, ' ')) const |
Public Member Functions inherited from fhicl::detail::TableBase | |
TableBase (Name const &name, Comment const &comment, par_style const vt, std::function< bool()> maybeUse) | |
std::vector< cet::exempt_ptr< ParameterBase > > const & | members () const |
Public Member Functions inherited from fhicl::detail::ParameterBase | |
std::string const & | key () const |
std::string const & | name () const |
std::string const & | comment () const |
bool | has_default () const |
bool | is_optional () const |
bool | is_conditional () const |
par_type | parameter_type () const |
bool | should_use () const |
ParameterBase (Name const &name, Comment const &comment, par_style const vt, par_type const type, std::function< bool()> maybeUse=AlwaysUse()) | |
virtual | ~ParameterBase ()=default |
void | set_value (fhicl::ParameterSet const &ps) |
bool | preset_value (fhicl::ParameterSet const &ps) |
void | set_par_style (par_style const vt) |
Private Types | |
using | members_t = std::vector< cet::exempt_ptr< ParameterBase >> |
Private Member Functions | |
Table (ParameterSet const &, std::set< std::string > const &, Impl) | |
void | maybe_implicitly_default () |
members_t const & | get_members () const override |
void | do_set_value (fhicl::ParameterSet const &pset) override |
Private Member Functions inherited from fhicl::detail::RegisterIfTableMember | |
RegisterIfTableMember (ParameterBase *pb) | |
Private Attributes | |
std::shared_ptr< T > | value_ {std::make_shared<T>()} |
ParameterSet | pset_ {} |
members_t | members_ {detail::TableMemberRegistry::release_members()} |
Definition at line 30 of file type_traits.h.
using fhicl::Table< T, KeysToIgnore >::default_type = T |
|
private |
using fhicl::Table< T, KeysToIgnore >::value_type = T |
|
explicit |
|
explicit |
Definition at line 134 of file Table.h.
|
explicit |
Definition at line 150 of file Table.h.
fhicl::Table< T, KeysToIgnore >::Table | ( | ParameterSet const & | pset | ) |
fhicl::Table< T, KeysToIgnore >::Table | ( | ParameterSet const & | pset, |
std::set< std::string > const & | keysToIgnore = {} |
||
) |
|
private |
Definition at line 179 of file Table.h.
|
overrideprivatevirtual |
Implements fhicl::detail::ParameterBase.
Definition at line 224 of file Table.h.
|
inlineoverrideprivatevirtual |
Implements fhicl::detail::TableBase.
|
inline |
|
private |
Definition at line 240 of file Table.h.
|
inline |
void fhicl::Table< T, KeysToIgnore >::print_allowed_configuration | ( | std::ostream & | os, |
std::string const & | tab = std::string(3, ' ') |
||
) | const |
Definition at line 213 of file Table.h.
void fhicl::Table< T, KeysToIgnore >::validate | ( | ParameterSet const & | pset, |
std::set< std::string > const & | keysToIgnore = {} |
||
) |
Definition at line 195 of file Table.h.
|
private |
|
private |
|
private |