Declaration of job class. More...
#include <Job.h>
Classes | |
| struct | ExclusivePotential |
| Point and Minimization keep ownedPot. Other jobs share in the public ctor. More... | |
Public Member Functions | |
| void | adoptRuntime (std::unique_ptr< Runtime > rt) |
| Take ownership of a Runtime previously passed as Runtime&. | |
| Job (std::unique_ptr< Parameters > parameters, Runtime &rt) | |
| Borrow: caller keeps Runtime alive (CLI stack / Python Session). | |
| Job (std::unique_ptr< Parameters > parameters, std::unique_ptr< Runtime > rt) | |
| Own a Runtime (one-shot makeJob / rvalue). | |
| Job (std::unique_ptr< Parameters > parameters) | |
| Own a default-constructed Runtime. | |
| Job (std::shared_ptr< Potential > potPassed, const Parameters ¶meters) | |
| virtual | ~Job ()=default |
| virtual std::vector< std::string > | run ()=0 |
| Virtual run; used solely for dynamic dispatch. | |
| JobType | getType () |
| PotRegistry & | pots () noexcept |
| size_t | potRegistryForceCalls () const noexcept |
| Force calls charged to pot's registry. | |
| void | releasePotential () |
| Drop the Potential so on_destroyed is recorded before Runtime dies. | |
Protected Member Functions | |
| Job (std::unique_ptr< Parameters > parameters, Runtime &rt, ExclusivePotential) | |
Protected Attributes | |
| JobType | jtype |
| Parameters | params |
| std::unique_ptr< Runtime > | owned_runtime_ |
| Non-null when this Job owns the composition root (one-shot makeJob). | |
| Runtime * | runtime_ |
| Always valid: either owned_runtime_.get() or a caller-owned Runtime. | |
| std::unique_ptr< Potential > | ownedPot |
| Exclusive until a multi-owner job promotes it in the public constructor. | |
| std::shared_ptr< Potential > | pot |
| Set when one Potential is shared across Matters, images, or a caller. | |
|
inlineprotected |
Definition at line 71 of file Job.h.
|
inline |
Borrow: caller keeps Runtime alive (CLI stack / Python Session).
The potential is shared. Point and minimization use ExclusivePotential.
Definition at line 89 of file Job.h.
|
inline |
|
inlineexplicit |
|
inline |
Definition at line 101 of file Job.h.
|
virtualdefault |
|
inline |
|
inlinenodiscard |
|
nodiscardnoexcept |
Force calls charged to pot's registry.
Per-image clones of pot (Main.parallel) charge it too; pot->forceCallCounter sees only pot.
|
inlinenodiscardnoexcept |
|
inline |
|
pure virtual |
Virtual run; used solely for dynamic dispatch.
Implemented in eonc::BasinHoppingJob, eonc::DynamicsJob, eonc::FiniteDifferenceJob, eonc::GlobalOptimizationJob, eonc::GPSurrogateJob, eonc::HessianJob, eonc::InstantonJob, eonc::MinimizationJob, eonc::MonteCarloJob, eonc::NudgedElasticBandJob, eonc::OHTSTJob, eonc::ParallelReplicaJob, eonc::PointJob, eonc::PrefactorJob, eonc::ProcessSearchJob, eonc::ReplicaDynamicsJob, eonc::ReplicaExchangeJob, eonc::SaddleSearchJob, eonc::StructureComparisonJob, and eonc::TestJob.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |