Iros
 
Loading...
Searching...
No Matches
di::function::detail::GeneratorIterator< Ref, Value > Class Template Reference

#include <di/function/generator.h>

Inheritance diagram for di::function::detail::GeneratorIterator< Ref, Value >:
[legend]

Public Member Functions

 GeneratorIterator (InPlace, Handle coroutine)
 
 GeneratorIterator (GeneratorIterator &&other)
 
auto operator= (GeneratorIterator &&other) -> GeneratorIterator &
 
auto operator* () const -> Ref
 
void advance_one ()
 
- Public Member Functions inherited from di::container::IteratorBase< GeneratorIterator< Ref, Value >, InputIteratorTag, GeneratorValue< Ref, Value >, ssize_t >
 IteratorBase ()=default
 
 IteratorBase (IteratorBase const &)=default
 
 IteratorBase (IteratorBase &&)=default
 
 IteratorBase (IteratorBase const &)=delete
 
auto operator= (IteratorBase const &) -> IteratorBase &=default
 
auto operator= (IteratorBase &&) -> IteratorBase &=default
 
auto operator= (IteratorBase const &) -> IteratorBase &requires(concepts::SameAs< InputIteratorTag, InputIteratorTag >)=delete
 
constexpr auto operator++ () -> GeneratorIterator< Ref, Value > &
 
constexpr void operator++ (int)
 
constexpr auto operator++ (int) -> GeneratorIterator< Ref, Value > requires(concepts::DerivedFrom< InputIteratorTag, ForwardIteratorTag >)
 
constexpr auto operator-- () -> GeneratorIterator< Ref, Value > &requires(concepts::DerivedFrom< InputIteratorTag, BidirectionalIteratorTag >)
 
constexpr auto operator-- (int) -> GeneratorIterator< Ref, Value > requires(concepts::DerivedFrom< InputIteratorTag, BidirectionalIteratorTag >)
 
constexpr auto operator[] (ssize_t n) const -> decltype(auto) requires(concepts::DerivedFrom< InputIteratorTag, RandomAccessIteratorTag >)
 
constexpr auto operator+= (ssize_t n) -> GeneratorIterator< Ref, Value > &requires(concepts::DerivedFrom< InputIteratorTag, RandomAccessIteratorTag >)
 
constexpr auto operator-= (ssize_t n) -> GeneratorIterator< Ref, Value > &requires(concepts::DerivedFrom< InputIteratorTag, RandomAccessIteratorTag >)
 

Friends

auto operator== (GeneratorIterator const &a, container::DefaultSentinel) -> bool
 

Constructor & Destructor Documentation

◆ GeneratorIterator() [1/2]

template<typename Ref, typename Value>
di::function::detail::GeneratorIterator< Ref, Value >::GeneratorIterator ( InPlace ,
Handle coroutine )
inline

◆ GeneratorIterator() [2/2]

template<typename Ref, typename Value>
di::function::detail::GeneratorIterator< Ref, Value >::GeneratorIterator ( GeneratorIterator< Ref, Value > && other)
inline

Member Function Documentation

◆ advance_one()

template<typename Ref, typename Value>
void di::function::detail::GeneratorIterator< Ref, Value >::advance_one ( )
inline

◆ operator*()

template<typename Ref, typename Value>
auto di::function::detail::GeneratorIterator< Ref, Value >::operator* ( ) const -> Ref
inline

◆ operator=()

template<typename Ref, typename Value>
auto di::function::detail::GeneratorIterator< Ref, Value >::operator= ( GeneratorIterator< Ref, Value > && other) -> GeneratorIterator&
inline

Friends And Related Symbol Documentation

◆ operator==

template<typename Ref, typename Value>
auto operator== ( GeneratorIterator< Ref, Value > const & a,
container::DefaultSentinel  ) -> bool
friend

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