Celeritas  0.5.0-56+6b053cd
Classes | Namespaces | Macros
GlobalTestBase.hh File Reference
#include <iosfwd>
#include <memory>
#include <string>
#include <vector>
#include "corecel/Assert.hh"
#include "corecel/cont/Span.hh"
#include "celeritas/geo/GeoFwd.hh"
#include "celeritas/global/ActionInterface.hh"
#include "celeritas/random/RngParamsFwd.hh"
#include "Test.hh"
This graph shows which files directly or indirectly include this file:

Classes

class  celeritas::test::GlobalTestBase
 Lazily construct core parameters, individually or together. More...
 

Namespaces

 celeritas::optical
 Physics classes used inside the optical physics loop.
 
 celeritas::test
 Test harness base class for optical physics.
 

Macros

#define DEF_GTB_ACCESSORS(CLS, NAME)
 

Macro Definition Documentation

◆ DEF_GTB_ACCESSORS

#define DEF_GTB_ACCESSORS (   CLS,
  NAME 
)
Value:
auto GlobalTestBase::NAME() -> CLS const& \
{ \
if (!this->NAME##_) \
{ \
this->NAME##_ = this->build_##NAME(); \
CELER_ASSERT(this->NAME##_); \
} \
return this->NAME##_; \
} \
auto GlobalTestBase::NAME() const -> CLS const& \
{ \
CELER_ASSERT(this->NAME##_); \
return this->NAME##_; \
}