Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
plotter.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <functional>
4 
5 template <typename T>
6 class Plotter
7 {
8 public:
9  Plotter() = default;
10  virtual ~Plotter() = default;
11  // Old way
12  std::string plot(const std::function<T(T)>& f, T from = 0.0, T to = 1.0, unsigned int n = 10) const;
13  // New way
14  std::string operator()(const std::function<T(T)>& f, T from = 0.0, T to = 1.0, unsigned int n = 10) const;
15 };
Definition: plotter.h:6
std::string operator()(const std::function< T(T)> &f, T from=0.0, T to=1.0, unsigned int n=10) const
Definition: plotter.cpp:52
virtual ~Plotter()=default
Plotter()=default
std::string plot(const std::function< T(T)> &f, T from=0.0, T to=1.0, unsigned int n=10) const
Definition: plotter.cpp:11