ATLAS Offline Software
Loading...
Searching...
No Matches
columnar::detail::VectorConvertIterator< FunctionType, IteratorType > Class Template Referencefinal

an iterator that does converts members using a passed in function More...

#include <VectorConvertView.h>

Collaboration diagram for columnar::detail::VectorConvertIterator< FunctionType, IteratorType >:

Public Member Functions

 VectorConvertIterator (const FunctionType &val_function, IteratorType &&val_iterator)
bool operator== (const VectorConvertIterator &that) const noexcept
bool operator!= (const VectorConvertIterator &that) const noexcept
VectorConvertIteratoroperator++ () noexcept
decltype(auto) operator* () const noexcept

Private Attributes

FunctionType m_function
IteratorType m_iterator

Detailed Description

template<typename FunctionType, typename IteratorType>
class columnar::detail::VectorConvertIterator< FunctionType, IteratorType >

an iterator that does converts members using a passed in function

Definition at line 32 of file VectorConvertView.h.

Constructor & Destructor Documentation

◆ VectorConvertIterator()

template<typename FunctionType, typename IteratorType>
columnar::detail::VectorConvertIterator< FunctionType, IteratorType >::VectorConvertIterator ( const FunctionType & val_function,
IteratorType && val_iterator )
inline

Public Members

Definition at line 38 of file VectorConvertView.h.

Member Function Documentation

◆ operator!=()

template<typename FunctionType, typename IteratorType>
bool columnar::detail::VectorConvertIterator< FunctionType, IteratorType >::operator!= ( const VectorConvertIterator< FunctionType, IteratorType > & that) const
inlinenodiscardnoexcept

Definition at line 44 of file VectorConvertView.h.

44 {
45 return m_iterator != that.m_iterator;}

◆ operator*()

template<typename FunctionType, typename IteratorType>
decltype(auto) columnar::detail::VectorConvertIterator< FunctionType, IteratorType >::operator* ( ) const
inlinenodiscardnoexcept

Definition at line 50 of file VectorConvertView.h.

50 {
51 return m_function (*m_iterator);}

◆ operator++()

template<typename FunctionType, typename IteratorType>
VectorConvertIterator & columnar::detail::VectorConvertIterator< FunctionType, IteratorType >::operator++ ( )
inlinenoexcept

Definition at line 47 of file VectorConvertView.h.

47 {
48 ++ m_iterator; return *this;}

◆ operator==()

template<typename FunctionType, typename IteratorType>
bool columnar::detail::VectorConvertIterator< FunctionType, IteratorType >::operator== ( const VectorConvertIterator< FunctionType, IteratorType > & that) const
inlinenodiscardnoexcept

Definition at line 42 of file VectorConvertView.h.

42 {
43 return m_iterator == that.m_iterator;}

Member Data Documentation

◆ m_function

template<typename FunctionType, typename IteratorType>
FunctionType columnar::detail::VectorConvertIterator< FunctionType, IteratorType >::m_function
private

Private Members

Definition at line 57 of file VectorConvertView.h.

◆ m_iterator

template<typename FunctionType, typename IteratorType>
IteratorType columnar::detail::VectorConvertIterator< FunctionType, IteratorType >::m_iterator
private

Definition at line 58 of file VectorConvertView.h.


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