ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
CxxUtils::reverse_wrapper< C > Class Template Reference

Adapter for a container-like class to be used in a range-for so as to iterate in the reverse direction. More...

#include <reverse_wrapper.h>

Collaboration diagram for CxxUtils::reverse_wrapper< C >:

Public Member Functions

 reverse_wrapper (C &r)
 
auto begin ()
 
auto end ()
 

Public Attributes

C & m_r
 

Detailed Description

template<class C>
class CxxUtils::reverse_wrapper< C >

Adapter for a container-like class to be used in a range-for so as to iterate in the reverse direction.

Definition at line 32 of file reverse_wrapper.h.

Constructor & Destructor Documentation

◆ reverse_wrapper()

template<class C >
CxxUtils::reverse_wrapper< C >::reverse_wrapper ( C &  r)
inline

Definition at line 35 of file reverse_wrapper.h.

35 : m_r (r) {}

Member Function Documentation

◆ begin()

template<class C >
auto CxxUtils::reverse_wrapper< C >::begin ( )
inline

Definition at line 36 of file reverse_wrapper.h.

36 { return m_r.rbegin(); }

◆ end()

template<class C >
auto CxxUtils::reverse_wrapper< C >::end ( )
inline

Definition at line 37 of file reverse_wrapper.h.

37 { return m_r.rend(); }

Member Data Documentation

◆ m_r

template<class C >
C& CxxUtils::reverse_wrapper< C >::m_r

Definition at line 38 of file reverse_wrapper.h.


The documentation for this class was generated from the following file:
beamspotman.r
def r
Definition: beamspotman.py:676
CxxUtils::reverse_wrapper::m_r
C & m_r
Definition: reverse_wrapper.h:38