ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/master/Examples/Framework/include/ACTFW/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 |
Definition at line 36 of file Range.hpp.
View newest version in sPHENIX GitHub at line 36 of file Range.hpp
References FW::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 FW::Range< Iterator >::m_begin, and FW::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 FW::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 FW::Range< Iterator >::m_begin, and FW::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 FW::Range< Iterator >::begin(), FW::Range< Iterator >::empty(), and FW::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 FW::Range< Iterator >::empty(), FW::Range< Iterator >::end(), and FW::Range< Iterator >::size().