|
|
Macros | |
| #define | _detail_ARMARX_IF_IN_PARENTHESIS_EXPAND(...) |
| If the first parameter is in parenthesis, the second parameter is returned, otherwise the third is returned. | |
| #define | ARMARX_ANONYMOUS_VARIABLE ARMARX_ANONYMOUS_VARIABLE_WITH_PREFIX(armarxAnonymousVariable) |
| creates a identifier. | |
| #define | ARMARX_ANONYMOUS_VARIABLE_WITH_PREFIX(pre) |
| creates a identifier with a given prefix. | |
| #define | ARMARX_CONCATENATE_5(s1, s2, s3, s4, s5) |
| concatenates its 5 parameters to one token (macros are expanded) | |
| #define | ARMARX_FIRST_PARAMETER(...) |
| Expands the given parameters and returns the first. | |
| #define | ARMARX_ID(...) |
| Expands the given parameters and returns them unmodified. | |
| #define | ARMARX_SECOND_PARAMETER(...) |
| Expands the given parameters and returns the second. | |
| #define | ARMARX_STRINGIFY(...) |
| Expands the given parameters and stringifies them. | |
| #define | ARMARX_THIRD_PARAMETER(...) |
| Expands the given parameters and returns the third. | |
| #define _detail_ARMARX_IF_IN_PARENTHESIS_EXPAND | ( | ... | ) |
#include <ArmarXCore/util/CPPUtility/Preprocessor/if_in_parentheses.h>
If the first parameter is in parenthesis, the second parameter is returned, otherwise the third is returned.
Definition at line 32 of file if_in_parentheses.h.
| #define ARMARX_ANONYMOUS_VARIABLE ARMARX_ANONYMOUS_VARIABLE_WITH_PREFIX(armarxAnonymousVariable) |
#include <ArmarXCore/util/CPPUtility/Preprocessor/anonymous_variable.h>
creates a identifier.
The created identifier contains the linenumber and is unique per translation unit. This makro's usecase are other macros, where a variable for RAII has to be created in the enclosing scope.
can be used like this:
Definition at line 74 of file anonymous_variable.h.
| #define ARMARX_ANONYMOUS_VARIABLE_WITH_PREFIX | ( | pre | ) |
#include <ArmarXCore/util/CPPUtility/Preprocessor/anonymous_variable.h>
creates a identifier with a given prefix.
The prefix may help when the variable shows up in compiler output.
can be used like this:
Definition at line 55 of file anonymous_variable.h.
| #define ARMARX_CONCATENATE_5 | ( | s1, | |
| s2, | |||
| s3, | |||
| s4, | |||
| s5 ) |
#include <ArmarXCore/util/CPPUtility/Preprocessor/concat.h>
concatenates its 5 parameters to one token (macros are expanded)
| #define ARMARX_FIRST_PARAMETER | ( | ... | ) |
#include <ArmarXCore/util/CPPUtility/Preprocessor/tuple_element.h>
Expands the given parameters and returns the first.
Definition at line 30 of file tuple_element.h.
| #define ARMARX_ID | ( | ... | ) |
#include <ArmarXCore/util/CPPUtility/Preprocessor/identity.h>
Expands the given parameters and returns them unmodified.
Definition at line 30 of file identity.h.
| #define ARMARX_SECOND_PARAMETER | ( | ... | ) |
#include <ArmarXCore/util/CPPUtility/Preprocessor/tuple_element.h>
Expands the given parameters and returns the second.
Definition at line 37 of file tuple_element.h.
| #define ARMARX_STRINGIFY | ( | ... | ) |
#include <ArmarXCore/util/CPPUtility/Preprocessor/stringify.h>
Expands the given parameters and stringifies them.
Definition at line 30 of file stringify.h.
| #define ARMARX_THIRD_PARAMETER | ( | ... | ) |
#include <ArmarXCore/util/CPPUtility/Preprocessor/tuple_element.h>
Expands the given parameters and returns the third.
Definition at line 44 of file tuple_element.h.