#include <cstdlib>
#include "math.h"
#include "exception.h"
#include "randomgenerator.h"
#include "globalsettings.h"
Go to the source code of this file.
|
| #define | MSGRETURN(x) { qDebug() << x; return; } |
| |
| #define | WARNINGRETURN(x) { qWarning() << x; return; } |
| |
| #define | ERRORRETURN(x) { qError() << x; return; } |
| |
| #define | RAD(x) (x*M_PI/180.) |
| |
| #define | GRAD(x) (x/M_PI*180.) |
| |
| #define | PI2 2*M_PI |
| |
| #define | DBG_IF(cond, where, what) ((cond) ? dbg_helper(where, what, __FILE__, __LINE__) : qt_noop()) |
| |
| #define | DBG_IF_X(cond, where, what, more) ((cond) ? dbg_helper_ext(where, what, __FILE__, __LINE__,more) : qt_noop()) |
| |
| #define | DBGMODE(stmts) { stmts } |
| |
| #define | isnan(x) ((x) != (x)) |
| |
|
| void | dbg_helper (const char *where, const char *what, const char *file, int line) |
| |
| void | dbg_helper_ext (const char *where, const char *what, const char *file, int line, const QString &s) |
| |
| bool | logLevelDebug () |
| |
| bool | logLevelInfo () |
| |
| bool | logLevelWarning () |
| |
| void | setLogLevel (int loglevel) |
| |
| double | limit (const double value, const double lower, const double upper) |
| |
| int | limit (const int value, const int lower, const int upper) |
| |
| void | setBit (unsigned int &rTarget, const int bit, const bool value) |
| |
| bool | isBitSet (const unsigned int value, const int bit) |
| |
◆ DBG_IF
| #define DBG_IF |
( |
|
cond, |
|
|
|
where, |
|
|
|
what |
|
) |
| ((cond) ? dbg_helper(where, what, __FILE__, __LINE__) : qt_noop()) |
◆ DBG_IF_X
| #define DBG_IF_X |
( |
|
cond, |
|
|
|
where, |
|
|
|
what, |
|
|
|
more |
|
) |
| ((cond) ? dbg_helper_ext(where, what, __FILE__, __LINE__,more) : qt_noop()) |
◆ DBGMODE
| #define DBGMODE |
( |
|
stmts | ) |
{ stmts } |
◆ ERRORRETURN
| #define ERRORRETURN |
( |
|
x | ) |
{ qError() << x; return; } |
◆ GRAD
| #define GRAD |
( |
|
x | ) |
(x/M_PI*180.) |
◆ isnan
| #define isnan |
( |
|
x | ) |
((x) != (x)) |
◆ MSGRETURN
| #define MSGRETURN |
( |
|
x | ) |
{ qDebug() << x; return; } |
◆ PI2
◆ RAD
| #define RAD |
( |
|
x | ) |
(x*M_PI/180.) |
◆ WARNINGRETURN
| #define WARNINGRETURN |
( |
|
x | ) |
{ qWarning() << x; return; } |
◆ dbg_helper()
| void dbg_helper |
( |
const char * |
where, |
|
|
const char * |
what, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| |
◆ dbg_helper_ext()
| void dbg_helper_ext |
( |
const char * |
where, |
|
|
const char * |
what, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const QString & |
s |
|
) |
| |
◆ isBitSet()
| bool isBitSet |
( |
const unsigned int |
value, |
|
|
const int |
bit |
|
) |
| |
|
inline |
◆ limit() [1/2]
| double limit |
( |
const double |
value, |
|
|
const double |
lower, |
|
|
const double |
upper |
|
) |
| |
|
inline |
◆ limit() [2/2]
| int limit |
( |
const int |
value, |
|
|
const int |
lower, |
|
|
const int |
upper |
|
) |
| |
|
inline |
◆ logLevelDebug()
◆ logLevelInfo()
◆ logLevelWarning()
◆ setBit()
| void setBit |
( |
unsigned int & |
rTarget, |
|
|
const int |
bit, |
|
|
const bool |
value |
|
) |
| |
|
inline |
◆ setLogLevel()
| void setLogLevel |
( |
int |
loglevel | ) |
|