Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Framework/include/ActsExamples/Utilities/Range.hpp>
Public Member Functions | |
Range (Iterator b, Iterator e) | |
Range (Range &&)=default | |
Range (const Range &)=default | |
~Range ()=default | |
Range & | operator= (Range &&)=default |
Range & | operator= (const Range &)=default |
Iterator | begin () const |
Iterator | end () const |
bool | empty () const |
std::size_t | size () const |
Private Attributes | |
Iterator | m_begin |
Iterator | m_end |
A wrapper around a pair of iterators to simplify range-based loops.
Some standard library algorithms return pairs of iterators to identify a sub-range. This wrapper simplifies the iteration and should be used as follows:
for (auto x : makeRange(std::equal_range(...)) { ...
Definition at line 27 of file Range.hpp.
View newest version in sPHENIX GitHub at line 27 of file Range.hpp
|
inline |
|
default |
|
default |
|
default |
|
inline |
Definition at line 36 of file Range.hpp.
View newest version in sPHENIX GitHub at line 36 of file Range.hpp
References ActsExamples::Range< Iterator >::m_begin.
|
inline |
Definition at line 38 of file Range.hpp.
View newest version in sPHENIX GitHub at line 38 of file Range.hpp
References ActsExamples::Range< Iterator >::m_begin, and ActsExamples::Range< Iterator >::m_end.
|
inline |
Definition at line 37 of file Range.hpp.
View newest version in sPHENIX GitHub at line 37 of file Range.hpp
References ActsExamples::Range< Iterator >::m_end.
|
default |
|
default |
|
inline |
Definition at line 39 of file Range.hpp.
View newest version in sPHENIX GitHub at line 39 of file Range.hpp
References distance(), ActsExamples::Range< Iterator >::m_begin, and ActsExamples::Range< Iterator >::m_end.
|
private |
Definition at line 42 of file Range.hpp.
View newest version in sPHENIX GitHub at line 42 of file Range.hpp
Referenced by ActsExamples::Range< Iterator >::begin(), ActsExamples::Range< Iterator >::empty(), and ActsExamples::Range< Iterator >::size().
|
private |
Definition at line 43 of file Range.hpp.
View newest version in sPHENIX GitHub at line 43 of file Range.hpp
Referenced by ActsExamples::Range< Iterator >::empty(), ActsExamples::Range< Iterator >::end(), and ActsExamples::Range< Iterator >::size().