DLG4::VolumeBuilders
A fluent interface for Geant4 geometry definition.
Loading...
Searching...
No Matches
Functions
collection

Functions

DerivedPtr AddTo (StructureViewList &list) const
 
DerivedPtr AddTo (AssemblyPtr &assembly) const
 

Detailed Description

methods to collect builders for batch operation.

/**

Add the builder a list for group/batch manipulations

Parameters
listThe list to add to.
Returns
the builder

Function Documentation

◆ AddTo() [1/2]

template<typename U >
VolumeBuilder< U >::DerivedPtr AddTo ( AssemblyPtr assembly) const

Add the builder an assembly geometrically joined manipulation.

Parameters
assemblyThe assembly to add to.
Returns
the builder

Definition at line 1019 of file VolumeBuilder.hpp.

1019 {
1020 assembly->AddStructure(this->ToStructureView());
1021 auto retval = shared_mutable_this(this);
1022 return retval;
1023 }
StructureView ToStructureView() const override
std::shared_ptr< T > shared_mutable_this(const std::enable_shared_from_this< T > *obj)

◆ AddTo() [2/2]

template<typename U >
VolumeBuilder< U >::DerivedPtr AddTo ( StructureViewList list) const

Add the builder a list for group/batch manipulations.

Parameters
listThe list to add to.
Returns
the builder

Definition at line 1012 of file VolumeBuilder.hpp.

1012 {
1013 list.emplace_back(this->ToStructureView());
1014 auto retval = shared_mutable_this(this);
1015 return retval;
1016 }