ATLAS Offline Software
Loading...
Searching...
No Matches
DynamicContainerListHelper< T_Container >::ContainerPtr Struct Reference

Helper which provides a pointer to a container and the index of the container in the container list. More...

#include <ContainerList.h>

Collaboration diagram for DynamicContainerListHelper< T_Container >::ContainerPtr:

Public Member Functions

 ContainerPtr (const ContainerPtr &a)=default
 ContainerPtr (ContainerPtr &&a)=default
ContainerPtroperator= (const ContainerPtr &a)=default
ContainerPtroperator= (ContainerPtr &&a)=default
T_Container & operator* ()
const T_Container & operator* () const
T_Container * operator-> ()
const T_Container * operator-> () const
unsigned int containerId () const
 Get the index of container in the container list.

Protected Member Functions

 ContainerPtr (T_Container *ptr, unsigned int container_idx)

Private Attributes

T_Container * m_container
unsigned int m_containerIdx

Friends

struct DynamicContainerListHelper

Detailed Description

template<typename T_Container>
struct DynamicContainerListHelper< T_Container >::ContainerPtr

Helper which provides a pointer to a container and the index of the container in the container list.

Definition at line 92 of file ContainerList.h.

Constructor & Destructor Documentation

◆ ContainerPtr() [1/3]

template<typename T_Container>
DynamicContainerListHelper< T_Container >::ContainerPtr::ContainerPtr ( T_Container * ptr,
unsigned int container_idx )
inlineprotected

Definition at line 95 of file ContainerList.h.

Helper class which allows to dynamically grow the container list.

◆ ContainerPtr() [2/3]

template<typename T_Container>
DynamicContainerListHelper< T_Container >::ContainerPtr::ContainerPtr ( const ContainerPtr & a)
default

◆ ContainerPtr() [3/3]

template<typename T_Container>
DynamicContainerListHelper< T_Container >::ContainerPtr::ContainerPtr ( ContainerPtr && a)
default

Member Function Documentation

◆ containerId()

template<typename T_Container>
unsigned int DynamicContainerListHelper< T_Container >::ContainerPtr::containerId ( ) const
inline

Get the index of container in the container list.

Definition at line 109 of file ContainerList.h.

109 {
110 return m_containerIdx;
111 }

◆ operator*() [1/2]

template<typename T_Container>
T_Container & DynamicContainerListHelper< T_Container >::ContainerPtr::operator* ( )
inline

Definition at line 103 of file ContainerList.h.

103{ assert( m_container != nullptr); return *m_container; }

◆ operator*() [2/2]

template<typename T_Container>
const T_Container & DynamicContainerListHelper< T_Container >::ContainerPtr::operator* ( ) const
inline

Definition at line 104 of file ContainerList.h.

104{ assert( m_container != nullptr); return *m_container; }

◆ operator->() [1/2]

template<typename T_Container>
T_Container * DynamicContainerListHelper< T_Container >::ContainerPtr::operator-> ( )
inline

Definition at line 105 of file ContainerList.h.

105{ assert( m_container != nullptr); return m_container; }

◆ operator->() [2/2]

template<typename T_Container>
const T_Container * DynamicContainerListHelper< T_Container >::ContainerPtr::operator-> ( ) const
inline

Definition at line 106 of file ContainerList.h.

106{ assert( m_container != nullptr); return m_container; }

◆ operator=() [1/2]

template<typename T_Container>
ContainerPtr & DynamicContainerListHelper< T_Container >::ContainerPtr::operator= ( const ContainerPtr & a)
default

◆ operator=() [2/2]

template<typename T_Container>
ContainerPtr & DynamicContainerListHelper< T_Container >::ContainerPtr::operator= ( ContainerPtr && a)
default

◆ DynamicContainerListHelper

template<typename T_Container>
friend struct DynamicContainerListHelper
friend

Definition at line 93 of file ContainerList.h.

Member Data Documentation

◆ m_container

template<typename T_Container>
T_Container* DynamicContainerListHelper< T_Container >::ContainerPtr::m_container
private

Definition at line 114 of file ContainerList.h.

◆ m_containerIdx

template<typename T_Container>
unsigned int DynamicContainerListHelper< T_Container >::ContainerPtr::m_containerIdx
private

Definition at line 115 of file ContainerList.h.


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