ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::ConstSharedPtrSpan< T > Class Template Reference

#include <TrackingVolume.h>

Collaboration diagram for Trk::ConstSharedPtrSpan< T >:

Public Member Functions

 ConstSharedPtrSpan (const std::vector< std::shared_ptr< T > > &var)
const T * operator[] (size_t i) const
constexpr bool empty () const noexcept
constexpr size_t size () const noexcept

Private Attributes

ArraySpan< const std::shared_ptr< T > > m_span

Detailed Description

template<class T>
class Trk::ConstSharedPtrSpan< T >

Definition at line 64 of file TrackingVolume.h.

Constructor & Destructor Documentation

◆ ConstSharedPtrSpan()

template<class T>
Trk::ConstSharedPtrSpan< T >::ConstSharedPtrSpan ( const std::vector< std::shared_ptr< T > > & var)
inline

Definition at line 67 of file TrackingVolume.h.

68 : m_span(var)
69 {
70 }
ArraySpan< const std::shared_ptr< T > > m_span

Member Function Documentation

◆ empty()

template<class T>
bool Trk::ConstSharedPtrSpan< T >::empty ( ) const
inlineconstexprnoexcept

Definition at line 73 of file TrackingVolume.h.

73{ return m_span.empty(); }

◆ operator[]()

template<class T>
const T * Trk::ConstSharedPtrSpan< T >::operator[] ( size_t i) const
inline

Definition at line 72 of file TrackingVolume.h.

72{ return m_span[i].get(); }

◆ size()

template<class T>
size_t Trk::ConstSharedPtrSpan< T >::size ( ) const
inlineconstexprnoexcept

Definition at line 74 of file TrackingVolume.h.

74{ return m_span.size(); }

Member Data Documentation

◆ m_span

template<class T>
ArraySpan<const std::shared_ptr<T> > Trk::ConstSharedPtrSpan< T >::m_span
private

Definition at line 77 of file TrackingVolume.h.


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