Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
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.

Member Function Documentation

◆ build_fresh_geometry()

virtual SPConstGeoI celeritas::test::LazyGeoManager::build_fresh_geometry ( std::string_view  key)
pure virtual

Construct a geometry for the first time.

Implemented in celeritas::test::SDTestBase, celeritas::test::GeantTestBase, and celeritas::test::GlobalGeoTestBase.


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