Elements 6.1.2
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
PiCalculator.h
Go to the documentation of this file.
1
24#ifndef ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_PICALCULATOR_H_
25#define ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_PICALCULATOR_H_
26
28
29namespace Elements {
30namespace Examples {
31
33public:
34 PiCalculator() = default;
35 void calculate(unsigned int terms);
36
37 typedef void (*show_result_callback_type)(double pi);
38 void setShowResultCallback(show_result_callback_type f);
39
40private:
41 show_result_callback_type m_show_result_callback{};
42};
43
44} // namespace Examples
45} // namespace Elements
46
47#endif // ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_PICALCULATOR_H_
48
defines the macros to be used for explicit export of the symbols
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition: Export.h:74