23#ifndef H2C_AUTOMATION_PATH_H
24#define H2C_AUTOMATION_PATH_H
29#if __cplusplus <= 199711L
42 typedef std::map<float,float>::iterator
iterator;
86 QString
toQString(
const QString& sPrefix =
"",
bool bShort =
true )
const override;
friend bool operator==(const AutomationPath &lhs, const AutomationPath &rhs)
Compare two paths.
std::map< float, float >::iterator iterator
const_iterator begin() const
float get_default() const noexcept
bool empty() const noexcept
AutomationPath(float min, float max, float def)
std::map< float, float > _points
float get_max() const noexcept
std::map< float, float >::const_iterator const_iterator
float get_value(float x) const noexcept
Get value at given location.
QString toQString(const QString &sPrefix="", bool bShort=true) const override
Formatted string version for debugging purposes.
const_iterator end() const
void remove_point(float x)
Remove point from path.
friend bool operator!=(const AutomationPath &lhs, const AutomationPath &rhs)
iterator move(iterator &in, float x, float y)
Move point to other location.
iterator find(float x)
Find point near specific location.
void add_point(float x, float y)
Add a point to path.
float get_min() const noexcept