libcamera  v0.3.2+116-83c5ad0f
Supporting cameras in Linux since 2019
Classes | Namespaces | Macros
flags.h File Reference

Enum-based bit fields. More...

#include <type_traits>
Include dependency graph for flags.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  libcamera::Flags< E >
 Type-safe container for enum-based bitfields. More...
 

Namespaces

 libcamera
 Top-level libcamera namespace.
 

Macros

#define LIBCAMERA_FLAGS_ENABLE_OPERATORS(_enum)
 Enable bitwise operations on the enum enumeration. More...
 

Detailed Description

Enum-based bit fields.

Macro Definition Documentation

◆ LIBCAMERA_FLAGS_ENABLE_OPERATORS

#define LIBCAMERA_FLAGS_ENABLE_OPERATORS (   _enum)

Enable bitwise operations on the enum enumeration.

This macro enables the bitwise AND, OR, XOR and NOT operators on the given enum. This allows the enum values to be safely used in bitwise operations with the Flags<> class.