ATLAS Offline Software
Loading...
Searching...
No Matches
Utils::ContainerProxy< Container, T_Derived, ElementProxy, IndexType, accessPolicy >::iterator_base< iteratorAccessPolicy > Struct Template Reference

Base class of iterators to iterate over the elements of this proxy container. More...

#include <ProxyContainer.h>

Inheritance diagram for Utils::ContainerProxy< Container, T_Derived, ElementProxy, IndexType, accessPolicy >::iterator_base< iteratorAccessPolicy >:
Collaboration diagram for Utils::ContainerProxy< Container, T_Derived, ElementProxy, IndexType, accessPolicy >::iterator_base< iteratorAccessPolicy >:

Public Member Functions

iterator_baseoperator++ ()
auto operator* ()
template<AccessPolicy otherIteratorAccessPolicy>
bool operator== (const iterator_base< otherIteratorAccessPolicy > &other) const

Detailed Description

template<class Container, class T_Derived, class ElementProxy, typename IndexType, AccessPolicy accessPolicy>
template<AccessPolicy iteratorAccessPolicy>
struct Utils::ContainerProxy< Container, T_Derived, ElementProxy, IndexType, accessPolicy >::iterator_base< iteratorAccessPolicy >

Base class of iterators to iterate over the elements of this proxy container.

Definition at line 336 of file ProxyContainer.h.

Member Function Documentation

◆ operator*()

template<class Container, class T_Derived, class ElementProxy, typename IndexType, AccessPolicy accessPolicy>
template<AccessPolicy iteratorAccessPolicy>
auto Utils::ContainerProxy< Container, T_Derived, ElementProxy, IndexType, accessPolicy >::iterator_base< iteratorAccessPolicy >::operator* ( )
inline

Definition at line 346 of file ProxyContainer.h.

347 {
350 }
The proxy container object which provides the means to iterate over its elements and create element p...
static auto createElementProxy(const Container *ptr, element_index_t &&element_index)
Create a proxy for one element of the "container" this proxy represents (read-only access).

◆ operator++()

template<class Container, class T_Derived, class ElementProxy, typename IndexType, AccessPolicy accessPolicy>
template<AccessPolicy iteratorAccessPolicy>
iterator_base & Utils::ContainerProxy< Container, T_Derived, ElementProxy, IndexType, accessPolicy >::iterator_base< iteratorAccessPolicy >::operator++ ( )
inline

Definition at line 340 of file ProxyContainer.h.

340 {
342 return *this;
343 }

◆ operator==()

template<class Container, class T_Derived, class ElementProxy, typename IndexType, AccessPolicy accessPolicy>
template<AccessPolicy iteratorAccessPolicy>
template<AccessPolicy otherIteratorAccessPolicy>
bool Utils::ContainerProxy< Container, T_Derived, ElementProxy, IndexType, accessPolicy >::iterator_base< iteratorAccessPolicy >::operator== ( const iterator_base< otherIteratorAccessPolicy > & other) const
inline

Definition at line 355 of file ProxyContainer.h.

355 {
357 return this->m_index == other.m_index;
358 }
ContainerPtrBase< accessPolicy > m_container

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