#include <TestJob.h>
Public Member Functions | |
| TestJob (std::unique_ptr< Parameters > params, Runtime &rt) | |
| ~TestJob ()=default | |
| std::vector< std::string > | run () |
| Virtual run; used solely for dynamic dispatch. | |
| Public Member Functions inherited from eonc::Job | |
| 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 |
| JobType | getType () |
| PotRegistry & | pots () noexcept |
| void | releasePotential () |
| Drop the Potential so on_destroyed is recorded before Runtime dies. | |
Private Member Functions | |
| void | checkFullSearch () |
| void | checkPotentials () |
| double | getEnergyDiff (const std::string &potTag, double refEnergy) |
| double | getForceDiff (const std::string &potTag, double refForce) |
Private Attributes | |
| double | tolerance {0.01} |
Additional Inherited Members | |
| Protected Attributes inherited from eonc::Job | |
| 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 |
|
default |
|
private |
Definition at line 41 of file TestJob.cpp.
|
private |
Definition at line 46 of file TestJob.cpp.
|
private |
Definition at line 78 of file TestJob.cpp.
|
private |
Definition at line 94 of file TestJob.cpp.
|
virtual |
Virtual run; used solely for dynamic dispatch.
Implements eonc::Job.
Definition at line 35 of file TestJob.cpp.