|
MIRA
|
Provides the MIRA_INSPECT macro. More...
#include <iostream>#include <string>#include <vector>#include <boost/algorithm/string/split.hpp>#include <boost/algorithm/string/classification.hpp>

Go to the source code of this file.
Macros | |
| #define | MIRA_INSPECT(...) _MIRA_INSPECT(__VA_ARGS__, #__VA_ARGS__) |
| Helper macro that prints the value of one or more variables on the console. More... | |
| #define | _MIRA_INSPECT_COMMON |
| #define | _MIRA_INSPECT_END |
Functions | |
| template<typename A > | |
| void | _MIRA_INSPECT (const A &a, const char *names) |
| template<typename A , typename B > | |
| void | _MIRA_INSPECT (const A &a, const B &b, const char *names) |
| template<typename A , typename B , typename C > | |
| void | _MIRA_INSPECT (const A &a, const B &b, const C &c, const char *names) |
| template<typename A , typename B , typename C , typename D > | |
| void | _MIRA_INSPECT (const A &a, const B &b, const C &c, const D &d, const char *names) |
| template<typename A , typename B , typename C , typename D , typename E > | |
| void | _MIRA_INSPECT (const A &a, const B &b, const C &c, const D &d, const E &e, const char *names) |
| template<typename A , typename B , typename C , typename D , typename E , typename F > | |
| void | _MIRA_INSPECT (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const char *names) |
| template<typename A , typename B , typename C , typename D , typename E , typename F , typename G > | |
| void | _MIRA_INSPECT (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const char *names) |
Provides the MIRA_INSPECT macro.
| #define MIRA_INSPECT | ( | ... | ) | _MIRA_INSPECT(__VA_ARGS__, #__VA_ARGS__) |
Helper macro that prints the value of one or more variables on the console.
To inspect a value of a variable you often have to write:
With this macro it's sufficient to write:
The output on the console will then be:
| #define _MIRA_INSPECT_COMMON |
| #define _MIRA_INSPECT_END |
| void _MIRA_INSPECT | ( | const A & | a, |
| const char * | names | ||
| ) |
| void _MIRA_INSPECT | ( | const A & | a, |
| const B & | b, | ||
| const char * | names | ||
| ) |
| void _MIRA_INSPECT | ( | const A & | a, |
| const B & | b, | ||
| const C & | c, | ||
| const char * | names | ||
| ) |
| void _MIRA_INSPECT | ( | const A & | a, |
| const B & | b, | ||
| const C & | c, | ||
| const D & | d, | ||
| const char * | names | ||
| ) |
| void _MIRA_INSPECT | ( | const A & | a, |
| const B & | b, | ||
| const C & | c, | ||
| const D & | d, | ||
| const E & | e, | ||
| const char * | names | ||
| ) |
| void _MIRA_INSPECT | ( | const A & | a, |
| const B & | b, | ||
| const C & | c, | ||
| const D & | d, | ||
| const E & | e, | ||
| const F & | f, | ||
| const char * | names | ||
| ) |
| void _MIRA_INSPECT | ( | const A & | a, |
| const B & | b, | ||
| const C & | c, | ||
| const D & | d, | ||
| const E & | e, | ||
| const F & | f, | ||
| const G & | g, | ||
| const char * | names | ||
| ) |
1.8.14