Celeritas 0.7.0-dev.79+develop.b3dc2e108
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
celeritas::VolumeAccessorInterface< V, VI, CVI > Class Template Referenceabstract

Interface for accessing the volume graph. More...

#include <VolumeVisitor.hh>

Public Types

using VolumeRef = V
 A lightweight identifier for a volume: OpaqueId or pointer.
 
using VolumeInstanceRef = VI
 A lightweight identifier for a volume instance.
 
using ContainerVolInstRef = CVI
 Container of child volume instances.
 

Public Member Functions

virtual VolumeRef volume (VolumeInstanceRef parent)=0
 Outgoing volume node from an instance.
 
virtual ContainerVolInstRef children (VolumeRef parent)=0
 Outgoing instance nodes from a volume.
 

Detailed Description

template<class V, class VI, class CVI = std::vector<VI>>
class celeritas::VolumeAccessorInterface< V, VI, CVI >

Interface for accessing the volume graph.

Template Parameters
VLightweight volume reference
VILightweight volume instance reference
CVIContainer of volume instance references

Note that this helper class is a template interface specification, not a required base class. Providing the type aliases and member functions is all that's needed.


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