LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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 "cetlib/container_algorithms.h"
3
#include "
fhiclcpp/types/ConfigPredicate.h
"
4
#include "
fhiclcpp/types/detail/NameStackRegistry.h
"
5
6
namespace
fhicl
{
7
8
OptionalDelegatedParameter::OptionalDelegatedParameter
(
Name
&& name)
9
:
OptionalDelegatedParameter
{std::move(
name
),
Comment
(
""
)}
10
{}
11
12
OptionalDelegatedParameter::OptionalDelegatedParameter
(
Name
&&
name
,
13
Comment
&&
comment
)
14
:
DelegateBase
{std::move(
name
),
15
std::move(
comment
),
16
par_style::OPTIONAL
,
17
detail::AlwaysUse
()}
18
,
RegisterIfTableMember
{
this
}
19
{
20
NameStackRegistry::end_of_ctor
();
21
}
22
23
OptionalDelegatedParameter::OptionalDelegatedParameter
(
24
Name
&&
name
,
25
Comment
&&
comment
,
26
std::function<
bool
()> maybeUse)
27
:
DelegateBase
{std::move(
name
),
28
std::move(
comment
),
29
par_style::OPTIONAL_CONDITIONAL
,
30
maybeUse}
31
,
RegisterIfTableMember
{
this
}
32
{
33
NameStackRegistry::end_of_ctor
();
34
}
35
}
fhicl::detail::DelegateBase::DelegateBase
DelegateBase(Name const &name, Comment const &comment, par_style const vt, std::function< bool()> maybeUse)
Definition:
DelegateBase.h:16
OptionalDelegatedParameter.h
fhicl::NameStackRegistry::end_of_ctor
static void end_of_ctor()
Definition:
NameStackRegistry.h:65
fhicl::detail::AlwaysUse
std::function< bool()> AlwaysUse()
Definition:
ConfigPredicate.h:10
fhicl::par_style::OPTIONAL
fhicl::OptionalDelegatedParameter
Definition:
OptionalDelegatedParameter.h:17
fhicl::detail::RegisterIfTableMember::RegisterIfTableMember
RegisterIfTableMember(ParameterBase *pb)
Definition:
TableMemberRegistry.h:107
NameStackRegistry.h
fhicl
parameter set interface
Definition:
ServiceProviderWrappers.h:37
fhicl::par_style::OPTIONAL_CONDITIONAL
fhicl::OptionalDelegatedParameter::OptionalDelegatedParameter
OptionalDelegatedParameter(Name &&name)
Definition:
OptionalDelegatedParameter.cc:8
ConfigPredicate.h
fhicl::detail::ParameterBase::name
std::string name() const
Definition:
ParameterBase.h:49
fhicl::Comment
Definition:
Comment.h:33
fhicl::detail::ParameterBase::comment
std::string comment() const
Definition:
ParameterBase.h:54
fhicl::Name
Definition:
Name.h:11
fhiclcpp
types
OptionalDelegatedParameter.cc
Generated on Wed Dec 12 2018 14:42:36 for LArSoft by
1.8.11