Declaration of job class. More...
#include <Job.h>
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 |
| void | releasePotential () |
| Drop the Potential so on_destroyed is recorded before Runtime dies. | |
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::shared_ptr< Potential > | pot |
|
inline |
Borrow: caller keeps Runtime alive (CLI stack / Python Session).
Definition at line 76 of file Job.h.
|
inline |
Own a Runtime (one-shot makeJob / rvalue).
Definition at line 84 of file Job.h.
|
inlineexplicit |
|
inline |
|
virtualdefault |
|
inline |
|
inlinenodiscard |
|
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 |