![]() |
Klang C++
Language Reference (draft)
|
A line graph plotter. More...
#include <klang.h>
Classes | |
| struct | Axes |
| Graph axes (x/y) More... | |
| struct | Axis |
| Graph axis. More... | |
| struct | Data |
| Graph data. More... | |
| struct | Point |
| A data point. More... | |
| struct | Series |
| Data series. More... | |
Public Member Functions | |
| virtual | ~Graph () |
| size_t | capacity () const |
| void | clear () |
| Graph & | operator() (double min, double max) |
| Graph::Series & | operator[] (int index) |
| const Graph::Series & | operator[] (int index) const |
| Graph & | operator() (double x_min, double x_max, double y_min, double y_max) |
| operator Series & () | |
| template<typename SIGNAL , typename... Args> | |
| void | plot (Generic::Function< SIGNAL, Args... > &function) |
| Plot the given Function. | |
| template<typename TYPE > | |
| void | plot (TYPE(*function)(TYPE)) |
| Plot the given function of x. | |
| template<typename FUNCTION , typename... VALUES> | |
| void | plot (FUNCTION f, VALUES... values) |
| Plot the given function for x plus additional arguments. | |
| template<typename TYPE > | |
| void | add (TYPE y) |
| Add a data point (incrementing x) | |
| void | add (const Point pt) |
| Add a data point. | |
| template<typename TYPE > | |
| Graph & | operator+= (TYPE y) |
| Add a data point (incrementing x) | |
| Graph & | operator+= (const Point pt) |
| Add a data point. | |
| template<typename TYPE > | |
| Graph & | operator= (TYPE(*function)(TYPE)) |
| Plot the given function of x. | |
| Graph & | operator= (std::initializer_list< Point > values) |
| Plot the given data points. | |
| Graph & | operator+= (std::initializer_list< Point > values) |
| Plot the given data points. | |
| template<typename... Args> | |
| Graph & | operator<< (Function< Args... > &function) |
| Plot the given function for x plus additional arguments. | |
| template<typename TYPE > | |
| Graph & | operator<< (TYPE &in) |
| template<typename TYPE > | |
| Graph & | operator<< (const TYPE &in) |
| const Axes & | getAxes () const |
| void | getAxes (Axes &axes) const |
| const Data & | getData () const |
| bool | isDirty () const |
| void | setDirty (bool dirty) |
| void | truncate (unsigned int count) |
Protected Attributes | |
| Axes | axes |
| Data | data |
| bool | dirty = false |
|
inlinevirtual |
|
inline |
Definition at line 1864 of file klang.h.
References klang::Generic::Graph< SIZE >::data, and klang::Generic::Graph< SIZE >::dirty.
|
inline |
|
inline |
|
inline |
Definition at line 1759 of file klang.h.
References klang::Generic::Graph< SIZE >::axes, klang::Generic::Graph< SIZE >::data, and klang::Generic::Graph< SIZE >::dirty.
Referenced by klang::Generic::Graph< SIZE >::operator=().
|
inline |
|
inline |
Definition at line 1904 of file klang.h.
References klang::Generic::Graph< SIZE >::data.
|
inline |
|
inline |
|
inline |
Definition at line 1812 of file klang.h.
References klang::Generic::Graph< SIZE >::data, and klang::Generic::Graph< SIZE >::dirty.
|
inline |
Definition at line 1790 of file klang.h.
References klang::Generic::Graph< SIZE >::axes, and klang::Generic::Graph< SIZE >::dirty.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1892 of file klang.h.
|
inline |
|
inline |
Definition at line 1880 of file klang.h.
References klang::Generic::Graph< SIZE >::clear().
|
inline |
|
inline |
Definition at line 1796 of file klang.h.
References klang::Generic::Graph< SIZE >::data, and klang::Generic::Graph< SIZE >::dirty.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1925 of file klang.h.
References klang::Generic::Graph< SIZE >::data.
|
protected |
Definition at line 1935 of file klang.h.
Referenced by klang::Generic::Graph< SIZE >::clear(), klang::Generic::Graph< SIZE >::getAxes(), klang::Generic::Graph< SIZE >::operator()(), and klang::Generic::Graph< SIZE >::operator()().
|
protected |
Definition at line 1936 of file klang.h.
Referenced by klang::Generic::Graph< SIZE >::add(), klang::Generic::Graph< SIZE >::clear(), klang::Generic::Graph< SIZE >::getAxes(), klang::Generic::Graph< SIZE >::getData(), klang::Generic::Graph< SIZE >::operator Series &(), klang::Generic::Graph< SIZE >::operator[](), and klang::Generic::Graph< SIZE >::truncate().
|
protected |
Definition at line 1937 of file klang.h.
Referenced by klang::Generic::Graph< SIZE >::add(), klang::Generic::Graph< SIZE >::clear(), klang::Generic::Graph< SIZE >::isDirty(), klang::Generic::Graph< SIZE >::operator Series &(), klang::Generic::Graph< SIZE >::operator()(), klang::Generic::Graph< SIZE >::operator()(), klang::Generic::Graph< SIZE >::operator[](), and klang::Generic::Graph< SIZE >::setDirty().