LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar::details::iteratorRange< BITER, EITER > Class Template Reference

Enclosure to use two iterators representing a range in a range-for loop. More...

#include "sparse_vector.h"

Public Member Functions

 iteratorRange (BITER const &b, EITER const &e)
 
auto const & begin () const
 
auto const & end () const
 
auto const & size () const
 

Private Attributes

BITER b
 
EITER e
 

Detailed Description

template<typename BITER, typename EITER>
class lar::details::iteratorRange< BITER, EITER >

Enclosure to use two iterators representing a range in a range-for loop.

Definition at line 1695 of file sparse_vector.h.

Constructor & Destructor Documentation

template<typename BITER , typename EITER >
lar::details::iteratorRange< BITER, EITER >::iteratorRange ( BITER const &  b,
EITER const &  e 
)
inline

Definition at line 1700 of file sparse_vector.h.

Member Function Documentation

template<typename BITER , typename EITER >
auto const& lar::details::iteratorRange< BITER, EITER >::begin ( ) const
inline

Definition at line 1701 of file sparse_vector.h.

1701 { return b; }
template<typename BITER , typename EITER >
auto const& lar::details::iteratorRange< BITER, EITER >::end ( ) const
inline

Definition at line 1702 of file sparse_vector.h.

References e.

1702 { return e; }
template<typename BITER , typename EITER >
auto const& lar::details::iteratorRange< BITER, EITER >::size ( ) const
inline

Definition at line 1703 of file sparse_vector.h.

References util::begin(), and util::end().

1703 { return std::distance(begin(), end()); }
auto const & begin() const
auto const & end() const

Member Data Documentation

template<typename BITER , typename EITER >
BITER lar::details::iteratorRange< BITER, EITER >::b
private

Definition at line 1696 of file sparse_vector.h.

template<typename BITER , typename EITER >
EITER lar::details::iteratorRange< BITER, EITER >::e
private

Definition at line 1697 of file sparse_vector.h.


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