Celeritas  0.5.0-86+4a8eea4
Classes | Public Member Functions | Static Public Member Functions | List of all members
celeritas::test::LazyGeoManager Class Referenceabstract

Base class for managing a persistent singleton geometry. More...

#include <LazyGeoManager.hh>

Inheritance diagram for celeritas::test::LazyGeoManager:
Inheritance graph
[legend]

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.
 

Detailed Description

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.


The documentation for this class was generated from the following files: