Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrTFlagsMask< TFlags > Class Template Reference

#include <GrTypes.h>

Public Member Functions

constexpr GrTFlagsMask (TFlags value)
 
constexpr GrTFlagsMask (int value)
 
constexpr int value () const
 

Detailed Description

template<typename TFlags>
class GrTFlagsMask< TFlags >

Wraps a C++11 enum that we use as a bitfield, and enables a limited amount of masking with type safety. Instantiated with the ~ operator.

Definition at line 29 of file GrTypes.h.

Constructor & Destructor Documentation

◆ GrTFlagsMask() [1/2]

template<typename TFlags >
constexpr GrTFlagsMask< TFlags >::GrTFlagsMask ( TFlags  value)
inlineexplicitconstexpr

Definition at line 31 of file GrTypes.h.

31: GrTFlagsMask(static_cast<int>(value)) {}
constexpr GrTFlagsMask(TFlags value)
Definition: GrTypes.h:31
constexpr int value() const
Definition: GrTypes.h:33

◆ GrTFlagsMask() [2/2]

template<typename TFlags >
constexpr GrTFlagsMask< TFlags >::GrTFlagsMask ( int  value)
inlineexplicitconstexpr

Definition at line 32 of file GrTypes.h.

32: fValue(value) {}

Member Function Documentation

◆ value()

template<typename TFlags >
constexpr int GrTFlagsMask< TFlags >::value ( ) const
inlineconstexpr

Definition at line 33 of file GrTypes.h.

33{ return fValue; }

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