Celeritas
0.5.0-56+6b053cd
|
Base class for managing a persistent singleton geometry. More...
#include <LazyGeoManager.hh>
Classes | |
class | CleanupGeoEnvironment |
struct | LazyGeo |
Public Types | |
Type aliases | |
using | SPConstGeoI = std::shared_ptr< GeoParamsInterface const > |
Public Member Functions | |
virtual SPConstGeoI | build_fresh_geometry (std::string_view key)=0 |
Construct a geometry for the first time. | |
SPConstGeoI | get_geometry (std::string_view key) |
Static Public Member Functions | |
static void | reset_geometry () |
Destroy the geometry if needed. | |
Base class for managing a persistent singleton geometry.
This class automatically cleans up after all tests are done executing, and ensures that only one geometry at a time is loaded.