ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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 >> &m_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 66 of file TrackingVolume.h.

Constructor & Destructor Documentation

◆ ConstSharedPtrSpan()

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

Definition at line 69 of file TrackingVolume.h.

70  : m_span(&*(m_var.begin()), &*(m_var.end()))
71  {
72  }

Member Function Documentation

◆ empty()

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

Definition at line 75 of file TrackingVolume.h.

75 { return m_span.empty(); }

◆ operator[]()

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

Definition at line 74 of file TrackingVolume.h.

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

◆ size()

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

Definition at line 76 of file TrackingVolume.h.

76 { 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 79 of file TrackingVolume.h.


The documentation for this class was generated from the following file:
lumiFormat.i
int i
Definition: lumiFormat.py:85
Trk::ConstSharedPtrSpan::m_span
ArraySpan< const std::shared_ptr< T > > m_span
Definition: TrackingVolume.h:79