|
ATLAS Offline Software
|
Go to the documentation of this file.
47 m_algorithmCount (that.m_algorithmCount)
51 for (
const auto&
algorithm : that.m_algorithms)
55 m_algorithms.push_back (
algorithm->makeClone ());
58 m_algorithms.emplace_back (
nullptr);
114 std::swap (m_algorithmCount, that.m_algorithmCount);
115 m_algorithms.swap (that.m_algorithms);
121 addAlgorithm (std::unique_ptr<IAlgorithmWrapper>&& val_algorithm)
123 using namespace msgEventLoop;
130 ANA_MSG_ERROR (
"can't have two algorithms with the same name: " << val_algorithm->getName());
131 return ::StatusCode::FAILURE;
136 return ::StatusCode::SUCCESS;
155 std::vector<std::unique_ptr<EL::IAlgorithmWrapper>>
JobConfig ::
160 RCU_THROW_MSG (
"algorithm count missmatch. streaming error?");
const IAlgorithmWrapper * getAlgorithm(std::string_view name) const noexcept
get the algorithm with the given name, or nullptr if there is no algorithm with that name
virtual ~JobConfig() noexcept
standard destructor
void testInvariant() const
test the invariant of this object
JobConfig() noexcept
standard constructor
JobConfig & operator=(const JobConfig &that)
standard assignment operator
ClassImp(EL::JobConfig) namespace EL
std::vector< std::unique_ptr< EL::IAlgorithmWrapper > > m_algorithms
the list of algorithms added
::StatusCode StatusCode
StatusCode definition for legacy code.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode addAlgorithm(std::unique_ptr< IAlgorithmWrapper > &&val_algorithm)
add an algorithm
the job configuration that is independent of driver and dataset
#define RCU_DESTROY_INVARIANT(x)
std::size_t numberOfAlgorithms() const noexcept
get the number of algorithms configured
#define RCU_CHANGE_INVARIANT(x)
#define RCU_THROW_MSG(message)
#define RCU_READ_INVARIANT(x)
void swap(JobConfig &that) noexcept
standard swap
std::vector< std::unique_ptr< EL::IAlgorithmWrapper > > extractAlgorithms()
extract the list of algorithms from this object
std::size_t m_algorithmCount
the number of algorithms added
#define RCU_NEW_INVARIANT(x)