glbinding  3.3.0.0
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches

Boolean type based on an 8-bit integer. More...

#include <glbinding/Boolean8.h>

Public Types

using underlying_type = unsigned char
 Type used for storing the value.
 

Public Member Functions

GLBINDING_CONSTEXPR Boolean8 ()
 Constructor.
 
GLBINDING_CONSTEXPR Boolean8 (bool on)
 Constructor.
 
GLBINDING_CONSTEXPR Boolean8 (char on)
 Constructor.
 
GLBINDING_CONSTEXPR Boolean8 (unsigned char on)
 Constructor.
 
GLBINDING_CONSTEXPR Boolean8 (int on)
 Constructor.
 
GLBINDING_CONSTEXPR Boolean8 (unsigned int on)
 Constructor.
 
GLBINDING_CONSTEXPR operator bool () const
 Type cast operator.
 
GLBINDING_CONSTEXPR operator char () const
 Type cast operator.
 
GLBINDING_CONSTEXPR operator unsigned char () const
 Type cast operator.
 
GLBINDING_CONSTEXPR operator int () const
 Type cast operator.
 
GLBINDING_CONSTEXPR operator unsigned int () const
 Type cast operator.
 
GLBINDING_CONSTEXPR bool operator< (const Boolean8 &other) const
 Comparison operator.
 
GLBINDING_CONSTEXPR bool operator> (const Boolean8 &other) const
 Comparison operator.
 
GLBINDING_CONSTEXPR bool operator<= (const Boolean8 &other) const
 Comparison operator.
 
GLBINDING_CONSTEXPR bool operator>= (const Boolean8 &other) const
 Comparison operator.
 
GLBINDING_CONSTEXPR bool operator== (const Boolean8 &other) const
 Comparison operator.
 
GLBINDING_CONSTEXPR bool operator!= (const Boolean8 &other) const
 Comparison operator.
 

Public Attributes

underlying_type m_value
 Value
 

Detailed Description

Boolean type based on an 8-bit integer.

Member Typedef Documentation

◆ underlying_type

Type used for storing the value.

Constructor & Destructor Documentation

◆ Boolean8() [1/6]

GLBINDING_CONSTEXPR glbinding::Boolean8::Boolean8 ( )
inline

Constructor.

Remarks
The value is set to false

◆ Boolean8() [2/6]

GLBINDING_CONSTEXPR glbinding::Boolean8::Boolean8 ( bool  on)
inline

Constructor.

Parameters
[in]onInitial value

◆ Boolean8() [3/6]

GLBINDING_CONSTEXPR glbinding::Boolean8::Boolean8 ( char  on)
inline

Constructor.

Parameters
[in]onInitial value

◆ Boolean8() [4/6]

GLBINDING_CONSTEXPR glbinding::Boolean8::Boolean8 ( unsigned char  on)
inline

Constructor.

Parameters
[in]onInitial value

◆ Boolean8() [5/6]

GLBINDING_CONSTEXPR glbinding::Boolean8::Boolean8 ( int  on)
inline

Constructor.

Parameters
[in]onInitial value

◆ Boolean8() [6/6]

GLBINDING_CONSTEXPR glbinding::Boolean8::Boolean8 ( unsigned int  on)
inline

Constructor.

Parameters
[in]onInitial value

Member Function Documentation

◆ operator bool()

GLBINDING_CONSTEXPR glbinding::Boolean8::operator bool ( ) const
inlineexplicit

Type cast operator.

Returns
Value as bool

◆ operator char()

GLBINDING_CONSTEXPR glbinding::Boolean8::operator char ( ) const
inlineexplicit

Type cast operator.

Returns
Value as char

◆ operator unsigned char()

GLBINDING_CONSTEXPR glbinding::Boolean8::operator unsigned char ( ) const
inlineexplicit

Type cast operator.

Returns
Value as unsigned char

◆ operator int()

GLBINDING_CONSTEXPR glbinding::Boolean8::operator int ( ) const
inlineexplicit

Type cast operator.

Returns
Value as int

◆ operator unsigned int()

GLBINDING_CONSTEXPR glbinding::Boolean8::operator unsigned int ( ) const
inlineexplicit

Type cast operator.

Returns
Value as unsigned int

◆ operator<()

GLBINDING_CONSTEXPR bool glbinding::Boolean8::operator< ( const Boolean8 other) const
inline

Comparison operator.

Parameters
[in]otherOther value
Returns
Result of comparing internal values
Remarks
Comparison uses numeric comparison of underlying_type

References m_value, and glbinding::Value< T >::m_value.

◆ operator>()

GLBINDING_CONSTEXPR bool glbinding::Boolean8::operator> ( const Boolean8 other) const
inline

Comparison operator.

Parameters
[in]otherOther value
Returns
Result of comparing internal values
Remarks
Comparison uses numeric comparison of underlying_type

References m_value, and glbinding::Value< T >::m_value.

◆ operator<=()

GLBINDING_CONSTEXPR bool glbinding::Boolean8::operator<= ( const Boolean8 other) const
inline

Comparison operator.

Parameters
[in]otherOther value
Returns
Result of comparing internal values
Remarks
Comparison uses numeric comparison of underlying_type

References m_value, and glbinding::Value< T >::m_value.

◆ operator>=()

GLBINDING_CONSTEXPR bool glbinding::Boolean8::operator>= ( const Boolean8 other) const
inline

Comparison operator.

Parameters
[in]otherOther value
Returns
Result of comparing internal values
Remarks
Comparison uses numeric comparison of underlying_type

References m_value, and glbinding::Value< T >::m_value.

◆ operator==()

GLBINDING_CONSTEXPR bool glbinding::Boolean8::operator== ( const Boolean8 other) const
inline

Comparison operator.

Parameters
[in]otherOther value
Returns
Result of comparing internal values
Remarks
Comparison uses numeric comparison of underlying_type

References m_value, and glbinding::Value< T >::m_value.

◆ operator!=()

GLBINDING_CONSTEXPR bool glbinding::Boolean8::operator!= ( const Boolean8 other) const
inline

Comparison operator.

Parameters
[in]otherOther value
Returns
Result of comparing internal values
Remarks
Comparison uses numeric comparison of underlying_type

References m_value, and glbinding::Value< T >::m_value.

Member Data Documentation

◆ m_value

underlying_type glbinding::Boolean8::m_value

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