HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
tt::generator< T >::iterator Class Reference

#include <ttauri/coroutine.hpp>

Public Member Functions

 iterator (handle_type coroutine)
 
iteratoroperator++ ()
 Resume the generator-function.
 
value_type const & operator* () const
 Retrieve the value co_yielded by the generator-function.
 
bool operator== (std::default_sentinel_t) const
 Check if the generator-function has finished.
 

Detailed Description

template<typename T>
class tt::generator< T >::iterator

A forward iterator which iterates through values co_yieled by the generator-function.

Member Function Documentation

◆ operator*()

template<typename T >
value_type const & tt::generator< T >::iterator::operator* ( ) const
inline

Retrieve the value co_yielded by the generator-function.

◆ operator++()

template<typename T >
iterator & tt::generator< T >::iterator::operator++ ( )
inline

Resume the generator-function.

◆ operator==()

template<typename T >
bool tt::generator< T >::iterator::operator== ( std::default_sentinel_t ) const
inline

Check if the generator-function has finished.


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