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

The Value class represents a printable wrapper around an OpenGL data type. More...

#include <glbinding/Value.h>

Inheritance diagram for glbinding::Value< T >:
glbinding::AbstractValue

Public Member Functions

GLBINDING_CONSTEXPR Value (const T &value)
 Constructor.
 
Valueoperator= (const Value &)=delete
 The deleted assigment operator.
 
GLBINDING_CONSTEXPR T value () const
 Get the value.
 
- Public Member Functions inherited from glbinding::AbstractValue
 AbstractValue ()
 Constructor.
 
virtual ~AbstractValue ()
 Destructor for correct memory deallocation on subclasses.
 

Protected Attributes

const T m_value
 The value.
 

Detailed Description

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

The Value class represents a printable wrapper around an OpenGL data type.

Template Parameters
TThe data type of the wrapped value
Remarks
This class is mainly used when callbacks of OpenGL functions are used

Constructor & Destructor Documentation

◆ Value()

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

Constructor.

Parameters
[in]valueThe value that should be printed later

Member Function Documentation

◆ operator=()

template<typename T >
Value & glbinding::Value< T >::operator= ( const Value< T > &  )
delete

The deleted assigment operator.

Remarks
For this dynamically allocated Value, no contents should be changable

◆ value()

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

Get the value.

Returns
The value

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

Referenced by glbinding::operator<<(), and glbinding::operator<<().

Member Data Documentation

◆ m_value


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