Public Member Functions | Private Member Functions | Private Attributes | List of all members
fhicl::detail::ValidateThenSet Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/fhiclcpp/v4_06_10/source/fhiclcpp/types/detail/ValidateThenSet.h"

Inheritance diagram for fhicl::detail::ValidateThenSet:
fhicl::detail::ParameterWalker< tt::const_flavor::require_non_const >

Public Member Functions

 ValidateThenSet (fhicl::ParameterSet const &pset, std::set< std::string > const &keysToIgnore)
 
void check_keys ()
 
void walk_over (tt::maybe_const_t< ParameterBase, C > &)
 
bool do_before_action (tt::maybe_const_t< ParameterBase, C > &p)
 
void do_after_action (tt::maybe_const_t< ParameterBase, C > &p)
 
void do_enter_table (tt::maybe_const_t< TableBase, C > &t)
 
void do_exit_table (tt::maybe_const_t< TableBase, C > &t)
 
void do_enter_sequence (tt::maybe_const_t< SequenceBase, C > &s)
 
void do_exit_sequence (tt::maybe_const_t< SequenceBase, C > &s)
 
void do_atom (tt::maybe_const_t< AtomBase, C > &a)
 
void do_delegated_parameter (tt::maybe_const_t< DelegateBase, C > &dp)
 

Private Member Functions

bool before_action (ParameterBase &p) override
 
void after_action (ParameterBase &p) override
 
void enter_sequence (SequenceBase &p) override
 
void delegated_parameter (DelegateBase &) override
 
void enter_table (TableBase &) override
 
void atom (AtomBase &) override
 

Private Attributes

ParameterSet const & pset_
 
std::set< std::stringignorableKeys_
 
std::vector< std::stringuserKeys_
 
std::vector< cet::exempt_ptr< ParameterBase > > missingParameters_
 

Detailed Description

Definition at line 16 of file ValidateThenSet.h.

Constructor & Destructor Documentation

fhicl::detail::ValidateThenSet::ValidateThenSet ( fhicl::ParameterSet const &  pset,
std::set< std::string > const &  keysToIgnore 
)
inline

Definition at line 19 of file ValidateThenSet.h.

References after_action(), before_action(), check_keys(), delegated_parameter(), enter_sequence(), ignorableKeys_, missingParameters_, cet::sort_all(), and userKeys_.

21  : pset_{pset}
22  , ignorableKeys_{keysToIgnore}
23  , userKeys_{pset.get_all_keys()}
25  {
27  }
std::set< std::string > ignorableKeys_
std::vector< std::string > userKeys_
void sort_all(RandCont &)
ParameterSet const & pset_
std::vector< cet::exempt_ptr< ParameterBase > > missingParameters_

Member Function Documentation

void fhicl::detail::ValidateThenSet::after_action ( ParameterBase p)
overrideprivate

Referenced by ValidateThenSet().

void fhicl::detail::ValidateThenSet::atom ( AtomBase )
inlineoverrideprivate

Definition at line 41 of file ValidateThenSet.h.

42  {}
bool fhicl::detail::ValidateThenSet::before_action ( ParameterBase p)
overrideprivate

Referenced by ValidateThenSet().

void fhicl::detail::ValidateThenSet::check_keys ( )

Referenced by ValidateThenSet().

void fhicl::detail::ValidateThenSet::delegated_parameter ( DelegateBase )
overrideprivate

Referenced by ValidateThenSet().

void fhicl::detail::ParameterWalker< C >::do_after_action ( tt::maybe_const_t< ParameterBase, C > &  p)
inlineinherited

Definition at line 98 of file ParameterWalker.h.

99  {
100  after_action(p);
101  }
const char * p
Definition: xmltok.h:285
virtual void after_action(tt::maybe_const_t< ParameterBase, C > &)
void fhicl::detail::ParameterWalker< C >::do_atom ( tt::maybe_const_t< AtomBase, C > &  a)
inlineinherited

Definition at line 126 of file ParameterWalker.h.

127  {
128  atom(a);
129  }
const double a
virtual void atom(tt::maybe_const_t< AtomBase, C > &)=0
bool fhicl::detail::ParameterWalker< C >::do_before_action ( tt::maybe_const_t< ParameterBase, C > &  p)
inlineinherited

Definition at line 93 of file ParameterWalker.h.

94  {
95  return before_action(p);
96  }
const char * p
Definition: xmltok.h:285
virtual bool before_action(tt::maybe_const_t< ParameterBase, C > &)
void fhicl::detail::ParameterWalker< C >::do_delegated_parameter ( tt::maybe_const_t< DelegateBase, C > &  dp)
inlineinherited

Definition at line 132 of file ParameterWalker.h.

133  {
135  }
virtual void delegated_parameter(tt::maybe_const_t< DelegateBase, C > &)=0
void fhicl::detail::ParameterWalker< C >::do_enter_sequence ( tt::maybe_const_t< SequenceBase, C > &  s)
inlineinherited

Definition at line 115 of file ParameterWalker.h.

116  {
117  enter_sequence(s);
118  }
const XML_Char * s
Definition: expat.h:262
virtual void enter_sequence(tt::maybe_const_t< SequenceBase, C > &)=0
void fhicl::detail::ParameterWalker< C >::do_enter_table ( tt::maybe_const_t< TableBase, C > &  t)
inlineinherited

Definition at line 104 of file ParameterWalker.h.

105  {
106  enter_table(t);
107  }
virtual void enter_table(tt::maybe_const_t< TableBase, C > &)=0
void fhicl::detail::ParameterWalker< C >::do_exit_sequence ( tt::maybe_const_t< SequenceBase, C > &  s)
inlineinherited

Definition at line 120 of file ParameterWalker.h.

121  {
122  exit_sequence(s);
123  }
virtual void exit_sequence(tt::maybe_const_t< SequenceBase, C > &)
const XML_Char * s
Definition: expat.h:262
void fhicl::detail::ParameterWalker< C >::do_exit_table ( tt::maybe_const_t< TableBase, C > &  t)
inlineinherited

Definition at line 109 of file ParameterWalker.h.

110  {
111  exit_table(t);
112  }
virtual void exit_table(tt::maybe_const_t< TableBase, C > &)
void fhicl::detail::ValidateThenSet::enter_sequence ( SequenceBase p)
overrideprivate

Referenced by ValidateThenSet().

void fhicl::detail::ValidateThenSet::enter_table ( TableBase )
inlineoverrideprivate

Definition at line 38 of file ValidateThenSet.h.

39  {}

Member Data Documentation

std::set<std::string> fhicl::detail::ValidateThenSet::ignorableKeys_
private

Definition at line 45 of file ValidateThenSet.h.

Referenced by ValidateThenSet().

std::vector<cet::exempt_ptr<ParameterBase> > fhicl::detail::ValidateThenSet::missingParameters_
private

Definition at line 47 of file ValidateThenSet.h.

Referenced by ValidateThenSet().

ParameterSet const& fhicl::detail::ValidateThenSet::pset_
private

Definition at line 44 of file ValidateThenSet.h.

std::vector<std::string> fhicl::detail::ValidateThenSet::userKeys_
private

Definition at line 46 of file ValidateThenSet.h.

Referenced by ValidateThenSet().


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