Elements  6.2
A C++ base framework for the Euclid Software.
PiCalculator.h
Go to the documentation of this file.
1 
24 #ifndef ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_PICALCULATOR_H_
25 #define ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_PICALCULATOR_H_
26 
27 #include "ElementsKernel/Export.h"
28 
29 namespace Elements {
30 namespace Examples {
31 
33 public:
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 
40 private:
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 
Export.h
defines the macros to be used for explicit export of the symbols
Elements::Examples::PiCalculator
Definition: PiCalculator.h:32
Elements::Kernel::Units::pi
constexpr double pi
Definition: MathConstants.h:34
ELEMENTS_API
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition: Export.h:74
Elements
Definition: callBackExample.h:35