LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
OptionalDelegatedParameter.cc
Go to the documentation of this file.
1
#include "
fhiclcpp/types/OptionalDelegatedParameter.h
"
2
#include "
fhiclcpp/types/ConfigPredicate.h
"
3
#include "
fhiclcpp/types/detail/NameStackRegistry.h
"
4
5
namespace
fhicl
{
6
7
OptionalDelegatedParameter::OptionalDelegatedParameter
(
Name
&& name)
8
:
OptionalDelegatedParameter
{std::move(
name
),
Comment
(
""
)}
9
{}
10
11
OptionalDelegatedParameter::OptionalDelegatedParameter
(
Name
&&
name
,
12
Comment
&&
comment
)
13
:
DelegateBase
{std::move(
name
),
14
std::move(
comment
),
15
par_style::OPTIONAL
,
16
detail::AlwaysUse
()}
17
,
RegisterIfTableMember
{
this
}
18
{
19
NameStackRegistry::end_of_ctor
();
20
}
21
22
OptionalDelegatedParameter::OptionalDelegatedParameter
(
23
Name
&&
name
,
24
Comment
&&
comment
,
25
std::function<
bool
()> maybeUse)
26
:
DelegateBase
{std::move(
name
),
27
std::move(
comment
),
28
par_style::OPTIONAL_CONDITIONAL
,
29
maybeUse}
30
,
RegisterIfTableMember
{
this
}
31
{
32
NameStackRegistry::end_of_ctor
();
33
}
34
}
fhicl::detail::DelegateBase::DelegateBase
DelegateBase(Name const &name, Comment const &comment, par_style const vt, std::function< bool()> maybeUse)
Definition:
DelegateBase.h:10
OptionalDelegatedParameter.h
fhicl::NameStackRegistry::end_of_ctor
static void end_of_ctor()
Definition:
NameStackRegistry.cc:31
fhicl::detail::AlwaysUse
std::function< bool()> AlwaysUse()
Definition:
ConfigPredicate.h:10
fhicl::par_style::OPTIONAL
fhicl::OptionalDelegatedParameter
Definition:
OptionalDelegatedParameter.h:18
fhicl::detail::RegisterIfTableMember::RegisterIfTableMember
RegisterIfTableMember(ParameterBase *pb)
Definition:
TableMemberRegistry.cc:42
NameStackRegistry.h
fhicl
parameter set interface
Definition:
BeamFlashTrackMatchTaggerAlg.h:17
fhicl::detail::ParameterBase::name
std::string const & name() const
Definition:
ParameterBase.cc:11
fhicl::par_style::OPTIONAL_CONDITIONAL
fhicl::OptionalDelegatedParameter::OptionalDelegatedParameter
OptionalDelegatedParameter(Name &&name)
Definition:
OptionalDelegatedParameter.cc:7
ConfigPredicate.h
fhicl::detail::ParameterBase::comment
std::string const & comment() const
Definition:
ParameterBase.cc:16
fhicl::Comment
Definition:
Comment.h:33
fhicl::Name
Definition:
Name.h:10
fhiclcpp
types
OptionalDelegatedParameter.cc
Generated on Thu May 2 2024 20:59:31 for LArSoft by
1.8.11