MIRA
|
Macros for generating logical operators for using enum values as flags. More...
Go to the source code of this file.
Namespaces | |
mira | |
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec> | |
Macros | |
#define | MIRA_ENUM_TO_FLAGS(EnumType) |
Macro that can be used with enums that contain flags. More... | |
#define | MIRA_ENUM_TO_FLAGS_INCLASS(EnumType) |
Macro that can be used with enums that contain flags. More... | |
Macros for generating logical operators for using enum values as flags.
#define MIRA_ENUM_TO_FLAGS | ( | EnumType | ) |
Macro that can be used with enums that contain flags.
The macro generates code for the logical operators &,|,^,~ to allow the enum values to be used as normal flags which would lead to compiler errors if these operators were not defined.
Example:
#define MIRA_ENUM_TO_FLAGS_INCLASS | ( | EnumType | ) |
Macro that can be used with enums that contain flags.
The macro generates code for the logical operators &,|,^,~ to allow the enum values to be used as normal flags which would lead to compiler errors if these operators were not defined. This macro works just as the MIRA_ENUM_TO_FLAGS macro but can be used for enums that are defined in a class.
Example: