Public Member Functions | Private Attributes | List of all members
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 1652 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 1656 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 1657 of file sparse_vector.h.

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

Definition at line 1658 of file sparse_vector.h.

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

Definition at line 1659 of file sparse_vector.h.

1659 { return std::distance(begin(), end()); }
double distance(double x1, double y1, double z1, double x2, double y2, double z2)
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 1653 of file sparse_vector.h.

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

Definition at line 1654 of file sparse_vector.h.


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