L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
L4::Types::Flags_t< DT, T > Struct Template Reference

Template type to define a flags type with bitwise operations. More...

#include <types>

Inheritance diagram for L4::Types::Flags_t< DT, T >:
Collaboration diagram for L4::Types::Flags_t< DT, T >:

Public Types

enum  None_type { None }
 The none type to get an empty value. More...

Public Member Functions

constexpr Flags_t ()=default
 Default constructor with no flag set.
constexpr Flags_t (None_type)
 Constructor to create an empty value.
constexpr Flags_t (DT f)
 Initialization from determinator type.
constexpr Flags_t (T f)
 Explicit initialization from the underlying type.
Public Member Functions inherited from L4::Types::Flags_ops_t< Flags_t< DT, T > >
constexpr DT & operator|= (DT const r)
 bitwise or assignment for DT
constexpr DT & operator&= (DT const r)
 bitwise and assignment for DT
constexpr DT & operator-= (DT const r)
 Bitwise difference (clear bits) assignment for DT.
constexpr operator bool () const
 explicit conversion to bool for tests
constexpr DT operator~ () const
 bitwise negation for DT

Data Fields

raw = 0
 Raw integral value.

Detailed Description

template<typename DT, typename T>
struct L4::Types::Flags_t< DT, T >

Template type to define a flags type with bitwise operations.

Template Parameters
DTdeterminator type to make the resulting type unique (unused).
Tunderlying type used to store the bits, usually an integral type.

Definition at line 264 of file types.

Member Enumeration Documentation

◆ None_type

template<typename DT, typename T>
enum L4::Types::Flags_t::None_type

The none type to get an empty value.

Enumerator
None 

Use this to get an empty value.

Definition at line 267 of file types.


The documentation for this struct was generated from the following file: