example.h (393B)
1 #pragma once 2 3 #include "genpybind.h" 4 5 class GENPYBIND(visible) Example { 6 public: 7 static constexpr int GENPYBIND(hidden) not_exposed = 10; 8 9 /// \brief Do a complicated calculation. 10 int calculate(int some_argument = 5) const; 11 12 GENPYBIND(getter_for(something)) 13 int getSomething() const; 14 15 GENPYBIND(setter_for(something)) 16 void setSomething(int value); 17 18 private: 19 int _value = 0; 20 };