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

Functions

DerivedPtr AddTo (StructureViewList &list) const
 
DerivedPtr AddTo (Assembly &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 >
VolumeBuilderBase< U >::DerivedPtr AddTo ( Assembly assembly) const

Add the builder an assembly geometrically joined manipulation.

Parameters
assemblyThe assembly to add to.
Returns
the builder

Definition at line 1016 of file VolumeBuilderBase.hpp.

1016 {
1017 assembly->AddStructure(this->ToStructureView());
1018 auto retval = shared_mutable_this(this);
1019 return retval;
1020 }
std::shared_ptr< T > shared_mutable_this(const std::enable_shared_from_this< T > *obj)

◆ AddTo() [2/2]

template<typename U >
VolumeBuilderBase< 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 1009 of file VolumeBuilderBase.hpp.

1009 {
1010 list.emplace_back(this->ToStructureView());
1011 auto retval = shared_mutable_this(this);
1012 return retval;
1013 }