MT Showcase SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Showcase::Generator< T > Class Template Referenceabstract

-----------—— Backend component interfaces --------------—— More...

#include <BackendComponents.hpp>

Inherits enable_shared_from_this< Generator< T > >.

Public Member Functions

virtual folly::Future< T > next (folly::Executor *executor=nullptr)=0
 Initiate generation of the next value. More...
 

Detailed Description

template<typename T>
class Showcase::Generator< T >

-----------—— Backend component interfaces --------------——

Base class for different generators

Member Function Documentation

template<typename T>
virtual folly::Future<T> Showcase::Generator< T >::next ( folly::Executor *  executor = nullptr)
pure virtual

Initiate generation of the next value.

Parameters
executorThe value of future should be calculated in this executor.
Returns
Next generated value wrapped inside future. It can take indefinite time for having value assigned for the returned future.

Implemented in Showcase::CachingGenerator< GraphGenerator >, and Showcase::CachingGenerator< PropertyGenerator >.