mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-25 11:19:52 +01:00
21 lines
393 B
C
21 lines
393 B
C
|
#pragma once
|
||
|
|
||
|
#include "genpybind.h"
|
||
|
|
||
|
class GENPYBIND(visible) Example {
|
||
|
public:
|
||
|
static constexpr int GENPYBIND(hidden) not_exposed = 10;
|
||
|
|
||
|
/// \brief Do a complicated calculation.
|
||
|
int calculate(int some_argument = 5) const;
|
||
|
|
||
|
GENPYBIND(getter_for(something))
|
||
|
int getSomething() const;
|
||
|
|
||
|
GENPYBIND(setter_for(something))
|
||
|
void setSomething(int value);
|
||
|
|
||
|
private:
|
||
|
int _value = 0;
|
||
|
};
|