glbinding  3.3.0.0
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches
glbinding::SharedBitfieldBase< T > Class Template Reference

The base class of a SharedBitfield, containing the actual (and convertible) bitfield value. More...

#include <glbinding/SharedBitfield.h>

Public Types

using UnderlyingType = T
 Propagate underlying type.
 

Public Member Functions

GLBINDING_CONSTEXPR SharedBitfieldBase (T value)
 Constructor.
 
GLBINDING_CONSTEXPR operator T () const
 Cast operator to the underlying type.
 

Protected Attributes

T m_value
 The value of the SharedBitfield.
 

Detailed Description

template<typename T>
class glbinding::SharedBitfieldBase< T >

The base class of a SharedBitfield, containing the actual (and convertible) bitfield value.

Template Parameters
TThe underlying type of the type-safe enum class

Member Typedef Documentation

◆ UnderlyingType

template<typename T >
using glbinding::SharedBitfieldBase< T >::UnderlyingType = T

Propagate underlying type.

Constructor & Destructor Documentation

◆ SharedBitfieldBase()

template<typename T >
GLBINDING_CONSTEXPR glbinding::SharedBitfieldBase< T >::SharedBitfieldBase ( T  value)
inline

Constructor.

Parameters
[in]valueThe value encoded in this shared bitfield

Member Function Documentation

◆ operator T()

template<typename T >
GLBINDING_CONSTEXPR glbinding::SharedBitfieldBase< T >::operator T ( ) const
inlineexplicit

Cast operator to the underlying type.

Returns
The bitfield value

Member Data Documentation

◆ m_value

template<typename T >
T glbinding::SharedBitfieldBase< T >::m_value
protected

The value of the SharedBitfield.


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