LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
DelegatedParameter.cc
Go to the documentation of this file.
1
#include "
fhiclcpp/types/DelegatedParameter.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
DelegatedParameter::DelegatedParameter
(
Name
&& name)
9
:
DelegatedParameter
{std::move(
name
),
Comment
(
""
)}
10
{}
11
12
DelegatedParameter::DelegatedParameter
(
Name
&&
name
,
Comment
&&
comment
)
13
:
DelegateBase
{std::move(
name
),
14
std::move(
comment
),
15
par_style::REQUIRED
,
16
detail::AlwaysUse
()}
17
,
RegisterIfTableMember
{
this
}
18
{
19
NameStackRegistry::end_of_ctor
();
20
}
21
22
DelegatedParameter::DelegatedParameter
(
Name
&&
name
,
23
Comment
&&
comment
,
24
std::function<
bool
()> maybeUse)
25
:
DelegateBase
{std::move(
name
),
26
std::move(
comment
),
27
par_style::REQUIRED_CONDITIONAL
,
28
maybeUse}
29
,
RegisterIfTableMember
{
this
}
30
{
31
NameStackRegistry::end_of_ctor
();
32
}
33
}
fhicl::par_style::REQUIRED_CONDITIONAL
fhicl::detail::DelegateBase::DelegateBase
DelegateBase(Name const &name, Comment const &comment, par_style const vt, std::function< bool()> maybeUse)
Definition:
DelegateBase.h:16
DelegatedParameter.h
fhicl::DelegatedParameter::DelegatedParameter
DelegatedParameter(Name &&name)
Definition:
DelegatedParameter.cc:8
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::detail::RegisterIfTableMember::RegisterIfTableMember
RegisterIfTableMember(ParameterBase *pb)
Definition:
TableMemberRegistry.h:107
NameStackRegistry.h
fhicl
parameter set interface
Definition:
ServiceProviderWrappers.h:37
ConfigPredicate.h
fhicl::detail::ParameterBase::name
std::string name() const
Definition:
ParameterBase.h:49
fhicl::par_style::REQUIRED
fhicl::Comment
Definition:
Comment.h:33
fhicl::detail::ParameterBase::comment
std::string comment() const
Definition:
ParameterBase.h:54
fhicl::Name
Definition:
Name.h:11
fhicl::DelegatedParameter
Definition:
DelegatedParameter.h:17
fhiclcpp
types
DelegatedParameter.cc
Generated on Wed Dec 12 2018 14:42:36 for LArSoft by
1.8.11