Skip to content

Class espos::flow::Curve

template <std::size_t MaxSamples>

ClassList > espos > flow > Curve

  • #include <espos_flow/transforms/marine.hpp>

Inherits the following classes: espos::flow::Transform

Public Types inherited from espos::flow::Transform

See espos::flow::Transform

Type Name
typedef In 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
Curve (const char * id)
Curve (const char * id, const formulas::CurveSample * samples, std::size_t count)
esp_err_t register_config (const char * title="Calibration curve", const char * in_label="input", const char * out_label="output")
std::size_t sample_count () const
const formulas::CurveSample * samples () const
void set (const float & v) override
void set_samples (const formulas::CurveSample * samples, std::size_t count)
std::size_t set_table_json (const char * json)
std::size_t table_json (char * buf, std::size_t n) const

Public Functions inherited from espos::flow::Transform

See espos::flow::Transform

Type Name
Transform (const char * id)

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::Consumer

See espos::flow::Consumer

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

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)

Protected Functions inherited from espos::flow::Transform

See espos::flow::Transform

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

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::Consumer

See espos::flow::Consumer

Type Name
~Consumer () = default

Protected Functions inherited from espos::flow::Producer

See espos::flow::Producer

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

Public Functions Documentation

function Curve [1/2]

inline explicit espos::flow::Curve::Curve (
    const  char * id
) 

function Curve [2/2]

inline espos::flow::Curve::Curve (
    const  char * id,
    const  formulas::CurveSample * samples,
    std::size_t count
) 

function register_config

inline esp_err_t espos::flow::Curve::register_config (
    const  char * title="Calibration curve",
    const  char * in_label="input",
    const  char * out_label="output"
) 

function sample_count

inline std::size_t espos::flow::Curve::sample_count () const

function samples

inline const  formulas::CurveSample * espos::flow::Curve::samples () const

function set

inline void espos::flow::Curve::set (
    const  float & v
) override

function set_samples

inline void espos::flow::Curve::set_samples (
    const  formulas::CurveSample * samples,
    std::size_t count
) 

function set_table_json

inline std::size_t espos::flow::Curve::set_table_json (
    const  char * json
) 

function table_json

inline std::size_t espos::flow::Curve::table_json (
    char * buf,
    std::size_t n
) const


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