Go to the source code of this file.
|
#define | DEFINE_INT_VARIABLE(X, NAME) DEFINE_VARIABLE_T(int, X, NAME) |
|
#define | DEFINE_VARIABLE(X, NAME) DEFINE_VARIABLE_T(double, X, NAME) |
|
#define | DEFINE_VARIABLE_T(T, X, NAME) |
|
#define | IMPLEMENT_INT_VARIABLE(X) IMPLEMENT_VARIABLE_T(int, X) |
|
#define | IMPLEMENT_VARIABLE(X) IMPLEMENT_VARIABLE_T(double, X) |
|
#define | IMPLEMENT_VARIABLE_T(T, X) |
|
◆ DEFINE_INT_VARIABLE
◆ DEFINE_VARIABLE
◆ DEFINE_VARIABLE_T
#define DEFINE_VARIABLE_T |
( |
|
T, |
|
|
|
X, |
|
|
|
NAME |
|
) |
| |
Value:
X() {} \
X(
const T& x) {
set(
x); } \
inline
operator T()
const {
return value; } \
inline
T operator()()
const {
return value; } \
inline
static const char*
name() { \
static
const char*
name = NAME; \
} \
inline
X operator=(
const T& x) { \
set(x); \
return *this; \
} \
inline
static void set(
const T&
x) {
value =
x; } \
\
private: \
\
} \
\
struct __useless_ignoreme
Definition at line 6 of file Variables.h.
◆ IMPLEMENT_INT_VARIABLE
◆ IMPLEMENT_VARIABLE
◆ IMPLEMENT_VARIABLE_T
#define IMPLEMENT_VARIABLE_T |
( |
|
T, |
|
|
|
X |
|
) |
| |
Value:
} \
\
struct __useless_ignoreme
Definition at line 35 of file Variables.h.