LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
fhicl::ParameterSetWalker Class Referenceabstract

#include "ParameterSetWalker.h"

Inheritance diagram for fhicl::ParameterSetWalker:
fhicl::detail::KeyAssembler fhicl::detail::Prettifier fhicl::detail::PrettifierAnnotated fhicl::detail::PrettifierPrefixAnnotated

Public Types

using key_t = std::string
 
using any_t = boost::any
 

Public Member Functions

virtual ~ParameterSetWalker () noexcept=default
 
void do_enter_table (key_t const &k, any_t const &a)
 
void do_enter_sequence (key_t const &k, any_t const &a)
 
void do_atom (key_t const &k, any_t const &a)
 
void do_before_action (key_t const &k, any_t const &a, ParameterSet const *ps)
 
void do_after_action ()
 
void do_exit_table (key_t const &k, any_t const &a)
 
void do_exit_sequence (key_t const &k, any_t const &a)
 

Private Member Functions

virtual void enter_table (key_t const &, any_t const &)=0
 
virtual void enter_sequence (key_t const &, any_t const &)=0
 
virtual void atom (key_t const &, any_t const &)=0
 
virtual void exit_table (key_t const &, any_t const &)
 
virtual void exit_sequence (key_t const &, any_t const &)
 
virtual void before_action (key_t const &, any_t const &, ParameterSet const *)
 
virtual void after_action ()
 

Detailed Description

Definition at line 75 of file ParameterSetWalker.h.

Member Typedef Documentation

Definition at line 80 of file ParameterSetWalker.h.

using fhicl::ParameterSetWalker::key_t = std::string

Definition at line 79 of file ParameterSetWalker.h.

Constructor & Destructor Documentation

virtual fhicl::ParameterSetWalker::~ParameterSetWalker ( )
virtualdefaultnoexcept

Member Function Documentation

virtual void fhicl::ParameterSetWalker::after_action ( )
inlineprivatevirtual

Reimplemented in fhicl::detail::PrettifierAnnotated.

Definition at line 137 of file ParameterSetWalker.h.

Referenced by do_after_action().

138  {}
virtual void fhicl::ParameterSetWalker::atom ( key_t const &  ,
any_t const &   
)
privatepure virtual
virtual void fhicl::ParameterSetWalker::before_action ( key_t const &  ,
any_t const &  ,
ParameterSet const *   
)
inlineprivatevirtual
void fhicl::ParameterSetWalker::do_after_action ( )
inline

Definition at line 104 of file ParameterSetWalker.h.

References after_action().

Referenced by fhicl::ParameterSet::walk().

105  {
106  after_action();
107  }
void fhicl::ParameterSetWalker::do_atom ( key_t const &  k,
any_t const &  a 
)
inline

Definition at line 93 of file ParameterSetWalker.h.

References atom().

Referenced by fhicl::ParameterSet::walk().

94  {
95  atom(k, a);
96  }
virtual void atom(key_t const &, any_t const &)=0
void fhicl::ParameterSetWalker::do_before_action ( key_t const &  k,
any_t const &  a,
ParameterSet const *  ps 
)
inline

Definition at line 99 of file ParameterSetWalker.h.

References before_action().

Referenced by fhicl::ParameterSet::walk().

100  {
101  before_action(k, a, ps);
102  }
virtual void before_action(key_t const &, any_t const &, ParameterSet const *)
void fhicl::ParameterSetWalker::do_enter_sequence ( key_t const &  k,
any_t const &  a 
)
inline

Definition at line 88 of file ParameterSetWalker.h.

References enter_sequence().

Referenced by fhicl::ParameterSet::walk().

89  {
90  enter_sequence(k, a);
91  }
virtual void enter_sequence(key_t const &, any_t const &)=0
void fhicl::ParameterSetWalker::do_enter_table ( key_t const &  k,
any_t const &  a 
)
inline

Definition at line 83 of file ParameterSetWalker.h.

References enter_table().

Referenced by fhicl::ParameterSet::walk().

84  {
85  enter_table(k, a);
86  }
virtual void enter_table(key_t const &, any_t const &)=0
void fhicl::ParameterSetWalker::do_exit_sequence ( key_t const &  k,
any_t const &  a 
)
inline

Definition at line 115 of file ParameterSetWalker.h.

References atom(), enter_sequence(), enter_table(), and exit_sequence().

Referenced by fhicl::ParameterSet::walk().

116  {
117  exit_sequence(k, a);
118  }
virtual void exit_sequence(key_t const &, any_t const &)
void fhicl::ParameterSetWalker::do_exit_table ( key_t const &  k,
any_t const &  a 
)
inline

Definition at line 110 of file ParameterSetWalker.h.

References exit_table().

Referenced by fhicl::ParameterSet::walk().

111  {
112  exit_table(k, a);
113  }
virtual void exit_table(key_t const &, any_t const &)
virtual void fhicl::ParameterSetWalker::enter_sequence ( key_t const &  ,
any_t const &   
)
privatepure virtual
virtual void fhicl::ParameterSetWalker::enter_table ( key_t const &  ,
any_t const &   
)
privatepure virtual
virtual void fhicl::ParameterSetWalker::exit_sequence ( key_t const &  ,
any_t const &   
)
inlineprivatevirtual
virtual void fhicl::ParameterSetWalker::exit_table ( key_t const &  ,
any_t const &   
)
inlineprivatevirtual

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