Skip to content

Class espos::flow::Value

template <typename T>

ClassList > espos > flow > Value

  • #include <espos_flow/node.hpp>

Inherits the following classes: espos::flow::NodeBase, espos::flow::Producer, espos::flow::Consumer

Public Types

Type Name
typedef T consumes_type

Public Types inherited from espos::flow::Producer

See espos::flow::Producer

Type Name
typedef T produces_type

Public Attributes inherited from espos::flow::NodeBase

See espos::flow::NodeBase

Type Name
NodeBase * next_node = [**nullptr**](classespos_1_1flow_1_1Poll.md)

Public Functions

Type Name
Value (const char * id, const T & initial=T{})
const T & initial () const
virtual void set (const T & v) override

Public Functions inherited from espos::flow::NodeBase

See espos::flow::NodeBase

Type Name
NodeBase (const char * id="")
NodeBase (const NodeBase &) = delete
const char * id () const
NodeBase & operator= (const NodeBase &) = delete
const char * title () const
NodeBase & with_title (const char * t)
~NodeBase () = default

Public Functions inherited from espos::flow::Producer

See espos::flow::Producer

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)

Public Functions inherited from espos::flow::Consumer

See espos::flow::Consumer

Type Name
virtual void set (const T & value) = 0

Protected Functions

Type Name
virtual const char * node_id_for_error () override const

Protected Functions inherited from espos::flow::NodeBase

See espos::flow::NodeBase

Type Name
void set_id (const char * id)

Protected Functions inherited from espos::flow::Producer

See espos::flow::Producer

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

Protected Functions inherited from espos::flow::Consumer

See espos::flow::Consumer

Type Name
~Consumer () = default

Public Types Documentation

typedef consumes_type

using espos::flow::Value< T >::consumes_type =  T;

Public Functions Documentation

function Value

inline explicit espos::flow::Value::Value (
    const  char * id,
    const  T & initial=T {}
) 

function initial

inline const  T & espos::flow::Value::initial () const

function set

inline virtual void espos::flow::Value::set (
    const  T & v
) override

Implements espos::flow::Consumer::set


Protected Functions Documentation

function node_id_for_error

inline virtual const  char * espos::flow::Value::node_id_for_error () override const

Implements espos::flow::Producer::node_id_for_error



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