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 DEFINE_VARIABLE_T |
( |
|
T, |
|
|
|
X, |
|
|
|
NAME |
|
) |
| |
Value: 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;
return name; } \
inline
X operator=(
const T& x) {
set(x);
return *
this; } \
inline
static void set(
const T&
x) {
value =
x; } \
private: \
\
\
} \
\
struct __useless_ignoreme
static const char * name()
#define NON_PARAMETRIC(FUN)
std::ostream & operator<<(std::ostream &cout, const Expression &e)
Definition at line 6 of file Variables.h.
#define IMPLEMENT_VARIABLE_T |
( |
|
T, |
|
|
|
X |
|
) |
| |
Value:} \
\
struct __useless_ignoreme \
Definition at line 30 of file Variables.h.