Turi Create  4.0
turi::neural_net::CallableIterator< Callable > Class Template Reference

#include <ml/neural_net/combine_iterator.hpp>

Public Member Functions

bool HasNext () const override
 
Output Next () override
 
std::shared_ptr< IteratorPublisher< std::result_of< Callable()>::type > > AsPublisher ()
 

Detailed Description

template<typename Callable>
class turi::neural_net::CallableIterator< Callable >

Templated implementation of Iterator that wraps an arbitrary callable type.

Definition at line 58 of file combine_iterator.hpp.

Member Function Documentation

◆ AsPublisher()

std::shared_ptr<IteratorPublisher<std::result_of< Callable()>::type > > turi::neural_net::Iterator< std::result_of< Callable()>::type >::AsPublisher ( )
inlineinherited

Returns a Publisher wrapping this Iterator.

Definition at line 49 of file combine_iterator.hpp.

◆ HasNext()

template<typename Callable >
bool turi::neural_net::CallableIterator< Callable >::HasNext ( ) const
inlineoverridevirtual

Returns true as long as the underlying sequence contains more values.

Implements turi::neural_net::Iterator< std::result_of< Callable()>::type >.

Definition at line 65 of file combine_iterator.hpp.

◆ Next()

template<typename Callable >
Output turi::neural_net::CallableIterator< Callable >::Next ( )
inlineoverridevirtual

Returns the next value in the sequence. May throw on error.

Implements turi::neural_net::Iterator< std::result_of< Callable()>::type >.

Definition at line 67 of file combine_iterator.hpp.


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