Public Types | Public Member Functions | Public Attributes | List of all members
WireCell::RangeFeed< Iter > Struct Template Reference

#include <RangeFeed.h>

Public Types

typedef Iter::value_type value_type
 

Public Member Functions

 RangeFeed (const Iter &begin, const Iter &end)
 
value_type operator() ()
 

Public Attributes

Iter m_begin
 
Iter m_end
 

Detailed Description

template<typename Iter>
struct WireCell::RangeFeed< Iter >

Definition at line 7 of file RangeFeed.h.

Member Typedef Documentation

template<typename Iter >
typedef Iter::value_type WireCell::RangeFeed< Iter >::value_type

Definition at line 8 of file RangeFeed.h.

Constructor & Destructor Documentation

template<typename Iter >
WireCell::RangeFeed< Iter >::RangeFeed ( const Iter &  begin,
const Iter &  end 
)
inline

Definition at line 10 of file RangeFeed.h.

10 : m_begin(begin), m_end(end) {}
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
Definition: StdUtils.h:72
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Definition: StdUtils.h:67

Member Function Documentation

template<typename Iter >
value_type WireCell::RangeFeed< Iter >::operator() ( void  )
inline

Definition at line 11 of file RangeFeed.h.

11  {
12  if (m_begin == m_end) {
13  return nullptr;
14  }
15  value_type ret = *m_begin;
16  ++m_begin;
17  return ret;
18  }
Iter::value_type value_type
Definition: RangeFeed.h:8

Member Data Documentation

template<typename Iter >
Iter WireCell::RangeFeed< Iter >::m_begin

Definition at line 9 of file RangeFeed.h.

template<typename Iter >
Iter WireCell::RangeFeed< Iter >::m_end

Definition at line 9 of file RangeFeed.h.


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