Celeritas 0.7+3f749ab
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::AllVolumesView Class Reference

GPU-compatible view of the full volume hierarchy graph. More...

#include <AllVolumesView.hh>

Public Types

Type aliases
using ParamsRef = NativeCRef< VolumeParamsData >
 

Public Member Functions

 AllVolumesView (ParamsRef const &params)
 Construct with shared params data.
 
VolumeId world () const
 Root volume of the geometry graph.
 
VolumeId::size_type num_volumes () const
 Number of logical volumes (nodes)
 
VolumeInstanceId::size_type num_volume_instances () const
 Number of volume instances (edges)
 
VolumeLevelId::size_type num_volume_levels () const
 Depth of the volume graph (1 for a world with no children)
 
VolumeId volume_id (VolumeInstanceId vi_id) const
 Get the logical volume instantiated by a volume instance.
 
VolumeView volume (VolumeId vol_id) const
 Construct a VolumeView for the given volume.
 

Detailed Description

GPU-compatible view of the full volume hierarchy graph.

This provides device-accessible accessors over the complete VolumeParamsData: scalar graph properties (world ID, depth) and instance-to-volume mapping, as well as per-volume VolumeView objects.

Member Function Documentation

◆ num_volume_instances()

VolumeInstanceId::size_type celeritas::AllVolumesView::num_volume_instances ( ) const
inline

Number of volume instances (edges)

Get the number of volume instances.

◆ num_volume_levels()

VolumeLevelId::size_type celeritas::AllVolumesView::num_volume_levels ( ) const
inline

Depth of the volume graph (1 for a world with no children)

Get the depth of the volume graph.

◆ num_volumes()

VolumeId::size_type celeritas::AllVolumesView::num_volumes ( ) const
inline

Number of logical volumes (nodes)

Get the number of logical volumes.

◆ world()

VolumeId celeritas::AllVolumesView::world ( ) const
inline

Root volume of the geometry graph.

Get the root volume of the geometry graph.


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