Skia
2D Graphics Library
GrTFlagsMask< TFlags > Class Template Reference

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

#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.

Constructor & Destructor Documentation

◆ GrTFlagsMask() [1/2]

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

◆ GrTFlagsMask() [2/2]

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

Member Function Documentation

◆ value()

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

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