ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr Struct Reference

#include <TrackContainer.h>

Collaboration diagram for ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr:

Public Member Functions

 ConstTrackProxyPtr (const ElementType *src)
 ConstTrackProxyPtr (const ConstTrackProxyPtr &)=default
 ConstTrackProxyPtr (ConstTrackProxyPtr &&)=default
 ConstTrackProxyPtr (const ConstTrackProxy &val)
 ConstTrackProxyPtr (ConstTrackProxy &&val)
ConstTrackProxy operator* () const
const ConstTrackProxyoperator-> () const
bool operator! () const
ConstTrackProxyPtroperator= (const ElementType *src)

Public Attributes

std::optional< ConstTrackProxym_proxy {std::nullopt}

Detailed Description

template<typename track_container_t>
struct ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr

Definition at line 56 of file TrackContainer.h.

Constructor & Destructor Documentation

◆ ConstTrackProxyPtr() [1/5]

template<typename track_container_t>
ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr::ConstTrackProxyPtr ( const ElementType * src)
inline

Definition at line 57 of file TrackContainer.h.

57 {
58 if (src) {
59 m_proxy = *src;
60 }
61 }
std::optional< ConstTrackProxy > m_proxy

◆ ConstTrackProxyPtr() [2/5]

template<typename track_container_t>
ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr::ConstTrackProxyPtr ( const ConstTrackProxyPtr & )
default

◆ ConstTrackProxyPtr() [3/5]

template<typename track_container_t>
ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr::ConstTrackProxyPtr ( ConstTrackProxyPtr && )
default

◆ ConstTrackProxyPtr() [4/5]

template<typename track_container_t>
ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr::ConstTrackProxyPtr ( const ConstTrackProxy & val)
inline

Definition at line 64 of file TrackContainer.h.

64:m_proxy(val) {}

◆ ConstTrackProxyPtr() [5/5]

template<typename track_container_t>
ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr::ConstTrackProxyPtr ( ConstTrackProxy && val)
inline

Definition at line 65 of file TrackContainer.h.

Member Function Documentation

◆ operator!()

template<typename track_container_t>
bool ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr::operator! ( ) const
inline

Definition at line 73 of file TrackContainer.h.

73 {
74 return !m_proxy.has_value();
75 }

◆ operator*()

template<typename track_container_t>
ConstTrackProxy ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr::operator* ( ) const
inline

Definition at line 67 of file TrackContainer.h.

67 {
68 return m_proxy.value();
69 }

◆ operator->()

template<typename track_container_t>
const ConstTrackProxy * ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr::operator-> ( ) const
inline

Definition at line 70 of file TrackContainer.h.

70 {
71 return &m_proxy.value();
72 }

◆ operator=()

template<typename track_container_t>
ConstTrackProxyPtr & ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr::operator= ( const ElementType * src)
inline

Definition at line 76 of file TrackContainer.h.

76 {
77 if (src) {
78 m_proxy = *src;
79 }
80 else {
81 m_proxy.reset();
82 }
83 return *this;
84 }

Member Data Documentation

◆ m_proxy

template<typename track_container_t>
std::optional<ConstTrackProxy> ActsTrk::IndexingPolicy< track_container_t >::ConstTrackProxyPtr::m_proxy {std::nullopt}

Definition at line 86 of file TrackContainer.h.


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