Factory helper class to construct volume or surface bounds where the constructed bounds are cached inside the factory and if the same bound parameters are requested at a later stage the factory automatically returns the cached bounds.
More...
|
| | BoundFactory ()=default |
| | Empty default constructor.
|
| | BoundFactory (const BoundFactory &other)=delete |
| | Delete the copy constructor.
|
template<typename BoundsImpl_t>
requires (std::is_base_of_v<BoundsType_t, BoundsImpl_t>) |
| std::shared_ptr< BoundsRet_t< BoundsImpl_t > > | insert (const std::shared_ptr< BoundsImpl_t > &bounds) |
| | Pass externally constructed bounds to the factory and run the deduplication mechanism on them.
|
template<typename BoundsImpl_t, class... argList>
requires (std::is_base_of_v<BoundsType_t, BoundsImpl_t>) |
| std::shared_ptr< BoundsRet_t< BoundsImpl_t > > | makeBounds (argList... args) |
| | Factory method to construct new bounds from the passed arguments.
|
| BoundFactory & | operator= (const BoundFactory &other)=delete |
| | Delete copy assignment.
|
| std::size_t | size () const |
| | Returns the number of cached objects inside the bound factory.
|
template<detail::ComparableBoundConcept BoundsType_t>
class Acts::BoundFactory< BoundsType_t >
Factory helper class to construct volume or surface bounds where the constructed bounds are cached inside the factory and if the same bound parameters are requested at a later stage the factory automatically returns the cached bounds.
This provides a simple sharing mechanism of the same bounds across multiple surfaces / volumes