glbinding  2.1.1.96dbfd46d679
A C++ binding for the OpenGL API, generated using the gl.xml specification.
glbinding::AbstractValue Class Referenceabstract

The AbstractValue class represents the superclass of a printable wrapper around an OpenGL data type. More...

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

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

Public Member Functions

 AbstractValue ()
 Constructor. More...
 
virtual ~AbstractValue ()
 Destructor for correct memory deallocation on subclasses. More...
 
virtual void printOn (std::ostream &stream) const =0
 Prints the contents of this AbstractValue on a stream. More...
 
std::string asString () const
 Convert the contents of this AbstractValue to a string. More...
 

Detailed Description

The AbstractValue class represents the superclass of a printable wrapper around an OpenGL data type.

This class and its subclasses Value<T> are mainly used when callbacks of OpenGL functions are used.

Constructor & Destructor Documentation

glbinding::AbstractValue::AbstractValue ( )

Constructor.

virtual glbinding::AbstractValue::~AbstractValue ( )
virtual

Destructor for correct memory deallocation on subclasses.

Member Function Documentation

virtual void glbinding::AbstractValue::printOn ( std::ostream &  stream) const
pure virtual

Prints the contents of this AbstractValue on a stream.

Parameters
[in]streamThe stream to print on.

Implemented in glbinding::Value< T >, glbinding::Value< T >, glbinding::Value< T >, glbinding::Value< T >, glbinding::Value< T >, and glbinding::Value< T >.

std::string glbinding::AbstractValue::asString ( ) const

Convert the contents of this AbstractValue to a string.

Returns
The string.

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