glbinding  2.1.1.96dbfd46d679
A C++ binding for the OpenGL API, generated using the gl.xml specification.
glbinding::Value< T > Class Template Reference

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

#include <glbinding/include/glbinding/Value.h>

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

Public Member Functions

 Value (const T &value)
 Constructor. More...
 
Valueoperator= (const Value &)=delete
 The deleted assigment operator. More...
 
virtual void printOn (std::ostream &stream) const override
 Prints the contents of this Value on a stream. More...
 
template<>
GLBINDING_API void printOn (std::ostream &stream) const
 A specialized printOn method for the gl::GLenum Value template. More...
 
template<>
GLBINDING_API void printOn (std::ostream &stream) const
 A specialized method for the gl::GLbitfield Value template. More...
 
template<>
GLBINDING_API void printOn (std::ostream &stream) const
 A specialized printOn method for the gl::GLubyte * Value template. More...
 
template<>
GLBINDING_API void printOn (std::ostream &stream) const
 A specialized printOn method for the gl::GLchar * Value template. More...
 
template<>
GLBINDING_API void printOn (std::ostream &stream) const
 A specialized printOn method for the gl::GLuint_array_2 Value template. More...
 
- Public Member Functions inherited from glbinding::AbstractValue
 AbstractValue ()
 Constructor. More...
 
virtual ~AbstractValue ()
 Destructor for correct memory deallocation on subclasses. More...
 
std::string asString () const
 Convert the contents of this AbstractValue to a string. More...
 

Protected Attributes

const T value
 The value that should be printed later. More...
 

Detailed Description

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

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

Parameters
TThe data type of the wrapped value.

This class is mainly used when callbacks of OpenGL functions are used.

Constructor & Destructor Documentation

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

Constructor.

Parameters
[in]valueThe value that should be printed later.

Member Function Documentation

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

The deleted assigment operator.

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

template<typename T >
void glbinding::Value< T >::printOn ( std::ostream &  stream) const
overridevirtual

Prints the contents of this Value on a stream.

Parameters
[in]streamThe stream to print on.

Implements glbinding::AbstractValue.

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

template<>
GLBINDING_API void glbinding::Value< gl::GLenum >::printOn ( std::ostream &  stream) const
virtual

A specialized printOn method for the gl::GLenum Value template.

Implements glbinding::AbstractValue.

template<>
GLBINDING_API void glbinding::Value< gl::GLboolean >::printOn ( std::ostream &  stream) const
virtual

A specialized method for the gl::GLbitfield Value template.

A specialized printOn method for the gl::GLenum Value template.

Implements glbinding::AbstractValue.

template<>
GLBINDING_API void glbinding::Value< const gl::GLubyte * >::printOn ( std::ostream &  stream) const
virtual

A specialized printOn method for the gl::GLubyte * Value template.

Implements glbinding::AbstractValue.

template<>
GLBINDING_API void glbinding::Value< const gl::GLchar * >::printOn ( std::ostream &  stream) const
virtual

A specialized printOn method for the gl::GLchar * Value template.

Implements glbinding::AbstractValue.

template<>
GLBINDING_API void glbinding::Value< gl::GLuint_array_2 >::printOn ( std::ostream &  stream) const
virtual

A specialized printOn method for the gl::GLuint_array_2 Value template.

Implements glbinding::AbstractValue.

Member Data Documentation

template<typename T >
const T glbinding::Value< T >::value
protected

The value that should be printed later.

Referenced by glbinding::Value< T >::printOn().


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