CGRA-ME
Public Member Functions | Public Attributes | List of all members
iterator_range< BIter, EIter > Struct Template Reference

#include <Collections.h>

Public Member Functions

template<typename BIter_C , typename EIter_C = BIter_C>
 iterator_range (BIter_C &&b_, EIter_C &&e_)
 
 iterator_range (const iterator_range &)=default
 
iterator_rangeoperator= (const iterator_range &)=default
 
 iterator_range (iterator_range &&)=default
 
iterator_rangeoperator= (iterator_range &&)=default
 
const BIter & begin () const
 
BIter & begin ()
 
const EIter & end () const
 
EIter & end ()
 
bool empty () const
 

Public Attributes

BIter b
 
EIter e
 

Detailed Description

template<typename BIter, typename EIter = BIter>
struct iterator_range< BIter, EIter >

Make two iterators behave like a collection

Definition at line 23 of file Collections.h.

Constructor & Destructor Documentation

◆ iterator_range() [1/3]

template<typename BIter , typename EIter = BIter>
template<typename BIter_C , typename EIter_C = BIter_C>
iterator_range< BIter, EIter >::iterator_range ( BIter_C &&  b_,
EIter_C &&  e_ 
)
inline

Definition at line 36 of file Collections.h.

◆ iterator_range() [2/3]

template<typename BIter , typename EIter = BIter>
iterator_range< BIter, EIter >::iterator_range ( const iterator_range< BIter, EIter > &  )
default

◆ iterator_range() [3/3]

template<typename BIter , typename EIter = BIter>
iterator_range< BIter, EIter >::iterator_range ( iterator_range< BIter, EIter > &&  )
default

Member Function Documentation

◆ begin() [1/2]

template<typename BIter , typename EIter = BIter>
BIter& iterator_range< BIter, EIter >::begin ( )
inline

Definition at line 47 of file Collections.h.

◆ begin() [2/2]

template<typename BIter , typename EIter = BIter>
const BIter& iterator_range< BIter, EIter >::begin ( ) const
inline

Definition at line 46 of file Collections.h.

◆ empty()

template<typename BIter , typename EIter = BIter>
bool iterator_range< BIter, EIter >::empty ( ) const
inline

Definition at line 52 of file Collections.h.

◆ end() [1/2]

template<typename BIter , typename EIter = BIter>
EIter& iterator_range< BIter, EIter >::end ( )
inline

Definition at line 50 of file Collections.h.

◆ end() [2/2]

template<typename BIter , typename EIter = BIter>
const EIter& iterator_range< BIter, EIter >::end ( ) const
inline

Definition at line 49 of file Collections.h.

◆ operator=() [1/2]

template<typename BIter , typename EIter = BIter>
iterator_range& iterator_range< BIter, EIter >::operator= ( const iterator_range< BIter, EIter > &  )
default

◆ operator=() [2/2]

template<typename BIter , typename EIter = BIter>
iterator_range& iterator_range< BIter, EIter >::operator= ( iterator_range< BIter, EIter > &&  )
default

Member Data Documentation

◆ b

template<typename BIter , typename EIter = BIter>
BIter iterator_range< BIter, EIter >::b

Definition at line 32 of file Collections.h.

◆ e

template<typename BIter , typename EIter = BIter>
EIter iterator_range< BIter, EIter >::e

Definition at line 33 of file Collections.h.


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