eOn 3.2.0
Long-timescale dynamics: aKMC, NEB, parallel replica
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
JobRegistry.h
Go to the documentation of this file.
1
/*
2
** This file is part of eOn.
3
**
4
** SPDX-License-Identifier: BSD-3-Clause
5
*/
6
#pragma once
7
8
#include "
BaseStructures.h
"
9
#include "
Job.h
"
10
11
#include <functional>
12
#include <memory>
13
14
namespace
eonc
{
15
16
using
JobFactory
=
17
std::function<std::unique_ptr<Job>(std::unique_ptr<Parameters>,
Runtime
&)>;
18
19
void
registerJob
(
JobType
type,
JobFactory
factory);
20
// Pulls Job.cpp into static links so the registrars run (MSVC).
21
void
forceJobRegistration
();
22
23
}
// namespace eonc
BaseStructures.h
Job.h
The job class is used to serve as an abstract class for all jobs, as well as to call a job at runtime...
eonc::Runtime
Move-only composition root for process resources (dlopen loaders and the potential registry).
Definition
Runtime.h:27
eonc
RAII resource manager for the ARTn C library with global synchronization.
Definition
ARTnSaddleSearch.cpp:23
eonc::forceJobRegistration
void forceJobRegistration()
Definition
Job.cpp:41
eonc::JobFactory
std::function< std::unique_ptr< Job >(std::unique_ptr< Parameters >, Runtime &)> JobFactory
Definition
JobRegistry.h:16
eonc::JobType
JobType
Definition
BaseStructures.h:77
eonc::registerJob
void registerJob(JobType type, JobFactory factory)
Definition
JobRegistry.cpp:19
include
eon
JobRegistry.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf