libcamera  v0.3.0+156-644986c2
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.


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


 Top-level libcamera namespace.


 Enable bitwise operations on the enum enumeration. More...

Detailed Description

Enum-based bit fields.

Macro Definition Documentation



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.