Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
Core
detail
LegacyModule.cc
Go to the documentation of this file.
1
#include "
art/Framework/Core/detail/LegacyModule.h
"
2
#include "
art/Utilities/SharedResource.h
"
3
4
namespace
art::detail
{
5
LegacyModule::LegacyModule
(
std::string
const
& module_label)
6
:
EngineCreator
{module_label,
ScheduleID::first
()}
7
{
8
serialize
(
detail::LegacyResource
);
9
}
10
11
ScheduleID
12
LegacyModule::scheduleID
()
const
noexcept
13
{
14
return
scheduleID_
.load();
15
}
16
17
void
18
LegacyModule::setScheduleID
(
ScheduleID
const
sid) noexcept
19
{
20
scheduleID_
= sid;
21
}
22
23
LegacyModule::ScheduleIDSentry::ScheduleIDSentry
(
24
LegacyModule
& mod,
25
ScheduleID
const
sid) noexcept
26
: mod_{mod}
27
{
28
mod_.setScheduleID(sid);
29
}
30
31
LegacyModule::ScheduleIDSentry::~ScheduleIDSentry
() noexcept
32
{
33
mod_.setScheduleID(
ScheduleID
{});
34
}
35
}
freeze_graph.const
const
Definition:
freeze_graph.py:179
LegacyModule.h
string
std::string string
Definition:
nybbler.cc:12
SharedResource.h
art::detail::LegacyModule::ScheduleIDSentry::~ScheduleIDSentry
~ScheduleIDSentry() noexcept
Definition:
LegacyModule.cc:31
art::ScheduleID::first
static constexpr ScheduleID first()
Definition:
ScheduleID.h:50
art::detail::LegacyModule::LegacyModule
LegacyModule(std::string const &module_label)
Definition:
LegacyModule.cc:5
art::detail
Definition:
AllowedConfiguration.h:76
art::detail::LegacyResource
SharedResource_t const LegacyResource
Definition:
SharedResource.cc:33
art::detail::LegacyModule::ScheduleIDSentry::ScheduleIDSentry
ScheduleIDSentry(LegacyModule &mod, ScheduleID const sid) noexcept
Definition:
LegacyModule.cc:23
art::detail::LegacyModule
Definition:
LegacyModule.h:13
art::detail::LegacyModule::scheduleID
ScheduleID scheduleID() const noexcept
Definition:
LegacyModule.cc:12
art::detail::LegacyModule::scheduleID_
std::atomic< ScheduleID > scheduleID_
Definition:
LegacyModule.h:32
art::detail::EngineCreator
Definition:
EngineCreator.h:31
art::ScheduleID
Definition:
ScheduleID.h:17
art::detail::SharedModule::serialize
void serialize(T const &...)
art::detail::LegacyModule::setScheduleID
void setScheduleID(ScheduleID const sid) noexcept
Definition:
LegacyModule.cc:18
Generated by
1.8.11