Skip to content

Class espos::flow::Producer

template <typename T>

ClassList > espos > flow > Producer

  • #include <espos_flow/node.hpp>

Inherited by the following classes: espos::flow::Mailbox, espos::flow::Mailbox, espos::flow::Mailbox, espos::flow::Transform, espos::flow::Transform, espos::flow::Transform, espos::flow::Transform, espos::flow::Transform, espos::flow::Transform, espos::flow::Transform, espos::flow::Transform, espos::sk::PutHandler, espos::flow::Constant, espos::flow::Mailbox, espos::flow::Poll, espos::flow::Value, espos::sensors::Analog, espos::sensors::GpioChange, espos::sensors::GpioOutput, espos::sensors::GpioState, espos::sensors::PulseCounter, espos::sensors::Pwm, espos::sk::Listener, espos::sk::PutHandler

Public Types

Type Name
typedef T produces_type

Public Functions

Type Name
Sink & connect_to (Sink & sink)
std::size_t edge_count () const
void emit (const T & value)
uint32_t emitted_at_ms () const
const T & get () const
bool has_value () const
Sink & operator>> (Sink & sink)

Protected Functions

Type Name
virtual const char * node_id_for_error () const
~Producer () = default

Public Types Documentation

typedef produces_type

using espos::flow::Producer< T >::produces_type =  T;

Public Functions Documentation

function connect_to

template<typename  Sink>
inline Sink & espos::flow::Producer::connect_to (
    Sink & sink
) 

function edge_count

inline std::size_t espos::flow::Producer::edge_count () const

function emit

inline void espos::flow::Producer::emit (
    const  T & value
) 

function emitted_at_ms

inline uint32_t espos::flow::Producer::emitted_at_ms () const

function get

inline const  T & espos::flow::Producer::get () const

function has_value

inline bool espos::flow::Producer::has_value () const

function operator>>

template<typename  Sink>
inline Sink & espos::flow::Producer::operator>> (
    Sink & sink
) 

Protected Functions Documentation

function node_id_for_error

inline virtual const  char * espos::flow::Producer::node_id_for_error () const

function ~Producer

espos::flow::Producer::~Producer () = default


The documentation for this class was generated from the following file espos_flow/include/espos_flow/node.hpp