#include <switch.h>
#include <string>
#include <memory>
#include <cmath>
Go to the source code of this file.
◆ PU_CLASS_POD_GET
#define PU_CLASS_POD_GET |
( |
| fn_name, |
|
|
| var_name, |
|
|
| type ) |
Value:inline type Get##fn_name() { \
return this->var_name; \
}
◆ PU_CLASS_POD_GETSET
#define PU_CLASS_POD_GETSET |
( |
| fn_name, |
|
|
| var_name, |
|
|
| type ) |
Value:
PU_CLASS_POD_SET(fn_name, var_name, type)
#define PU_CLASS_POD_GET(fn_name, var_name, type)
Definition pu_Include.hpp:27
◆ PU_CLASS_POD_SET
#define PU_CLASS_POD_SET |
( |
| fn_name, |
|
|
| var_name, |
|
|
| type ) |
Value:inline void Set##fn_name(const type new_val) { \
this->var_name = new_val; \
}
◆ PU_SMART_CTOR
#define PU_SMART_CTOR |
( |
| type | ) |
|
Value:using Ref = std::shared_ptr<type>; \
template<typename ...Args> \
inline static Ref New(Args &&...ctor_args) { \
return std::make_shared<type>(std::forward<Args>(ctor_args)...); \
}