ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::DataLinkHolder< T > Struct Template Reference

#include <PersistentTrackContainer.h>

Collaboration diagram for ActsTrk::DataLinkHolder< T >:

Public Types

using element_type = T

Public Member Functions

 DataLinkHolder (const DataLink< T > &link)
const T & operator* () const
const T * operator-> () const
T & operator* ()
T * operator-> ()
 operator bool () const

Public Attributes

DataLink< T > m_link

Detailed Description

template<typename T>
struct ActsTrk::DataLinkHolder< T >

Definition at line 20 of file PersistentTrackContainer.h.

Member Typedef Documentation

◆ element_type

template<typename T>
using ActsTrk::DataLinkHolder< T >::element_type = T

Definition at line 21 of file PersistentTrackContainer.h.

Constructor & Destructor Documentation

◆ DataLinkHolder()

template<typename T>
ActsTrk::DataLinkHolder< T >::DataLinkHolder ( const DataLink< T > & link)
inline

Member Function Documentation

◆ operator bool()

template<typename T>
ActsTrk::DataLinkHolder< T >::operator bool ( ) const
inline

Definition at line 30 of file PersistentTrackContainer.h.

30{ return m_link.isValid(); }

◆ operator*() [1/2]

template<typename T>
T & ActsTrk::DataLinkHolder< T >::operator* ( )
inline

Definition at line 27 of file PersistentTrackContainer.h.

27{ return *(m_link.ptr()); }

◆ operator*() [2/2]

template<typename T>
const T & ActsTrk::DataLinkHolder< T >::operator* ( ) const
inline

Definition at line 25 of file PersistentTrackContainer.h.

25{ return *(m_link.cptr()); }

◆ operator->() [1/2]

template<typename T>
T * ActsTrk::DataLinkHolder< T >::operator-> ( )
inline

Definition at line 28 of file PersistentTrackContainer.h.

28{ return m_link.ptr(); }

◆ operator->() [2/2]

template<typename T>
const T * ActsTrk::DataLinkHolder< T >::operator-> ( ) const
inline

Definition at line 26 of file PersistentTrackContainer.h.

26{ return m_link.cptr(); }

Member Data Documentation

◆ m_link

template<typename T>
DataLink<T> ActsTrk::DataLinkHolder< T >::m_link

Definition at line 22 of file PersistentTrackContainer.h.


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