|
INET Framework for OMNeT++/OMNEST
|
#include "inet/common/precompiled_debug.h"#include "inet/opp_defines.h"#include "inet/features.h"#include "inet/common/Compat.h"#include "inet/common/InitStages.h"Namespaces | |
| inet | |
| Copyright (c) 2005 Jan Ringo�, www.ringos.cz. | |
Macros | |
| #define | INET_VERSION 0x0403 |
| #define | INET_PATCH_LEVEL 0x99 |
| #define | INET_API |
| #define | SPEED_OF_LIGHT 299792458.0 |
| #define | RNGCONTEXT (cSimulation::getActiveSimulation()->getContext())-> |
| #define | FINGERPRINT_ADD_EXTRA_DATA(x) { if (cFingerprintCalculator * fpc = getSimulation()->getFingerprintCalculator()) fpc->addExtraData(x); } |
| #define | FINGERPRINT_ADD_EXTRA_DATA2(x, y) { if (cFingerprintCalculator * fpc = getSimulation()->getFingerprintCalculator()) fpc->addExtraData(x, y); } |
| #define | CHK(x) __checknull((x), #x, __FILE__, __LINE__) |
| #define | PK(msg) check_and_cast<cPacket *>(msg) /*TODO temp def*/ |
| #define | TIME(CODE) { long startTime = clock(); CODE; printElapsedTime( #CODE, startTime); } |
| #define | GET_3TH_ARG(arg1, arg2, arg3, ...) arg3 |
| #define | EV_FORMAT_STYLE(format) (evFlags & IPrintableObject::PRINT_FLAG_FORMATTED ? format : "") |
| #define | EV_NORMAL EV_FORMAT_STYLE("\x1b[0m") |
| #define | EV_BOLD EV_FORMAT_STYLE("\x1b[1m") |
| #define | EV_FAINT EV_FORMAT_STYLE("\x1b[2m") |
| #define | EV_ITALIC EV_FORMAT_STYLE("\x1b[3m") |
| #define | EV_UNDERLINE EV_FORMAT_STYLE("\x1b[4m") |
| #define | EV_FORMAT_OBJECT(object) printToStringIfPossible(object, evFlags) |
| #define | EV_FIELD_1(field) EV_FIELD_2(field, field) |
| #define | EV_FIELD_2(field, value) ", " << EV_BOLD << #field << EV_NORMAL << " = " << EV_FORMAT_OBJECT(value) |
| #define | EV_FIELD_CHOOSER(...) GET_3TH_ARG(__VA_ARGS__, EV_FIELD_2, EV_FIELD_1, ) |
| #define | EV_FIELD(...) EV_FIELD_CHOOSER(__VA_ARGS__)(__VA_ARGS__) |
| #define | EV_ENDL "." << endl |
| #define | EV_LOC EV_FAINT << __FILE__ << ":" << __LINE__ << ":" << __FUNCTION__ << "()" << EV_NORMAL |
Typedefs | |
| typedef unsigned short | inet::ushort |
| typedef unsigned int | inet::uint |
| typedef unsigned long | inet::ulong |
| template<class... > | |
| using | inet::void_t = void |
Functions | |
| template<class T > | |
| T * | inet::__checknull (T *p, const char *expr, const char *file, int line) |
| void | inet::printElapsedTime (const char *name, long startTime) |
| #define CHK | ( | x | ) | __checknull((x), #x, __FILE__, __LINE__) |
| #define EV_BOLD EV_FORMAT_STYLE("\x1b[1m") |
| #define EV_ENDL "." << endl |
| #define EV_FAINT EV_FORMAT_STYLE("\x1b[2m") |
| #define EV_FIELD | ( | ... | ) | EV_FIELD_CHOOSER(__VA_ARGS__)(__VA_ARGS__) |
| #define EV_FIELD_1 | ( | field | ) | EV_FIELD_2(field, field) |
| #define EV_FIELD_2 | ( | field, | |
| value | |||
| ) | ", " << EV_BOLD << #field << EV_NORMAL << " = " << EV_FORMAT_OBJECT(value) |
| #define EV_FIELD_CHOOSER | ( | ... | ) | GET_3TH_ARG(__VA_ARGS__, EV_FIELD_2, EV_FIELD_1, ) |
| #define EV_FORMAT_OBJECT | ( | object | ) | printToStringIfPossible(object, evFlags) |
| #define EV_FORMAT_STYLE | ( | format | ) | (evFlags & IPrintableObject::PRINT_FLAG_FORMATTED ? format : "") |
| #define EV_ITALIC EV_FORMAT_STYLE("\x1b[3m") |
| #define EV_NORMAL EV_FORMAT_STYLE("\x1b[0m") |
| #define EV_UNDERLINE EV_FORMAT_STYLE("\x1b[4m") |
| #define FINGERPRINT_ADD_EXTRA_DATA | ( | x | ) | { if (cFingerprintCalculator * fpc = getSimulation()->getFingerprintCalculator()) fpc->addExtraData(x); } |
| #define FINGERPRINT_ADD_EXTRA_DATA2 | ( | x, | |
| y | |||
| ) | { if (cFingerprintCalculator * fpc = getSimulation()->getFingerprintCalculator()) fpc->addExtraData(x, y); } |
| #define GET_3TH_ARG | ( | arg1, | |
| arg2, | |||
| arg3, | |||
| ... | |||
| ) | arg3 |
| #define INET_API |
| #define INET_PATCH_LEVEL 0x99 |
| #define INET_VERSION 0x0403 |
| #define PK | ( | msg | ) | check_and_cast<cPacket *>(msg) /*TODO temp def*/ |
| #define RNGCONTEXT (cSimulation::getActiveSimulation()->getContext())-> |
| #define SPEED_OF_LIGHT 299792458.0 |
| #define TIME | ( | CODE | ) | { long startTime = clock(); CODE; printElapsedTime( #CODE, startTime); } |