OpenWalnut  1.5.0dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
WIteratorRangeUnpacker< IteratorType > Class Template Reference

A temporary used to unpack an iterator range into two iterators. More...

#include <WIteratorRange.h>

+ Collaboration diagram for WIteratorRangeUnpacker< IteratorType >:

Public Member Functions

 WIteratorRangeUnpacker (IteratorType &begin, IteratorType &end)
 Constructs the unpacker. More...
 
 ~WIteratorRangeUnpacker ()
 Destructor. More...
 
void operator= (WIteratorRange< IteratorType > const &range)
 Unpacks the provided range into the iterators referenced by this object. More...
 

Private Member Functions

WIteratorRangeUnpackeroperator= (WIteratorRangeUnpacker const &)
 Assignment is not allowed. More...
 

Private Attributes

IteratorType & m_begin
 A reference to the iterator that will be assigned the beginning of the range. More...
 
IteratorType & m_end
 A reference to the iterator that will be assigned the end of the range. More...
 

Detailed Description

template<typename IteratorType>
class WIteratorRangeUnpacker< IteratorType >

A temporary used to unpack an iterator range into two iterators.

Template Parameters
IteratorTypeTHe type of the iterators used.

Definition at line 149 of file WIteratorRange.h.

Constructor & Destructor Documentation

◆ WIteratorRangeUnpacker()

template<typename IteratorType >
WIteratorRangeUnpacker< IteratorType >::WIteratorRangeUnpacker ( IteratorType &  begin,
IteratorType &  end 
)

Constructs the unpacker.

Parameters
beginA reference to the iterator to unpack the begin iterator into.
endA reference to the iterator to unpack the end iterator into.

Definition at line 196 of file WIteratorRange.h.

◆ ~WIteratorRangeUnpacker()

template<typename IteratorType >
WIteratorRangeUnpacker< IteratorType >::~WIteratorRangeUnpacker

Destructor.

Definition at line 203 of file WIteratorRange.h.

Member Function Documentation

◆ operator=() [1/2]

template<typename IteratorType >
void WIteratorRangeUnpacker< IteratorType >::operator= ( WIteratorRange< IteratorType > const &  range)

Unpacks the provided range into the iterators referenced by this object.

The lack of a return type is intended.

Parameters
rangeThe renge to unpack.

Definition at line 215 of file WIteratorRange.h.

References WIteratorRange< IteratorType >::begin(), and WIteratorRange< IteratorType >::end().

+ Here is the call graph for this function:

◆ operator=() [2/2]

template<typename IteratorType >
WIteratorRangeUnpacker& WIteratorRangeUnpacker< IteratorType >::operator= ( WIteratorRangeUnpacker< IteratorType > const &  )
private

Assignment is not allowed.

Returns
Not used.

Member Data Documentation

◆ m_begin

template<typename IteratorType >
IteratorType& WIteratorRangeUnpacker< IteratorType >::m_begin
private

A reference to the iterator that will be assigned the beginning of the range.

Definition at line 189 of file WIteratorRange.h.

◆ m_end

template<typename IteratorType >
IteratorType& WIteratorRangeUnpacker< IteratorType >::m_end
private

A reference to the iterator that will be assigned the end of the range.

Definition at line 192 of file WIteratorRange.h.


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