9#include <glbinding/glbinding_api.h>
48 Version(
unsigned char majorVersion,
unsigned char minorVersion);
102 bool operator< (
const Version & version)
const;
114 bool operator> (
const Version & version)
const;
186 operator std::pair<unsigned char, unsigned char>()
const;
192 operator std::pair<unsigned short, unsigned short>()
const;
198 operator std::pair<unsigned int, unsigned int>()
const;
GLBINDING_API std::ostream & operator<<(std::ostream &stream, const glbinding::Version &version)
The operator to allow Versions to be printed onto a std::ostream.
The Version class represents an OpenGL feature, consisting of majow version and minor version,...
Definition: Version.h:31
bool operator!=(const Version &version) const
Operator for unequal comparison to another Version.
static const std::set< Version > preceeding(const Version &version)
Returns the list of all valid, previous Versions (Features) known by the gl.xml.
Version(unsigned char majorVersion, unsigned char minorVersion)
Constructor for a Version object with the given major and minor version.
Version & operator=(const Version &version)
The assignment operator of another Version.
unsigned char m_minor
The minor version.
Definition: Version.h:276
Version & operator=(Version &&version)
The assignment operator of another Version that is moved from.
unsigned char minorVersion() const
Accessor for the minor version.
static const std::set< Version > s_validVersions
The set of all valid versions.
Definition: Version.h:279
unsigned char m_major
The major version.
Definition: Version.h:275
Version(const Version &version)
Copy constructor.
static const Version s_latest
The most current version.
Definition: Version.h:280
bool isNull() const
Check if the Version was constructed using the default constructor.
std::string toString() const
Create a string representing the Version using the scheme "<majorVersion>.<minorVersion>".
bool operator>=(const Version &version) const
Operator for greater equal comparison to another Version.
bool operator==(const Version &version) const
Operator for equal comparison to another Version.
static const std::set< Version > succeeding(const Version &version)
Returns the list of all valid, subsequent Versions (Features) known by the gl.xml.
const Version & nearest() const
Returns the nearest valid Version to this Version.
Version()
Default constructor, resulting in an invalid Version object.
unsigned char majorVersion() const
Accessor for the major version.
static const Version & latest()
Return the most current valid Version.
Version(Version &&version)
Move constructor.
bool operator<=(const Version &version) const
Operator for lesser equal comparison to another Version.
bool isValid() const
Check for validity of this Version, based on the list of all valid OpenGL feautures.
static const std::set< Version > & versions()
Accessor for the list of all valid Versions (OpenGL features).
Contains all the classes of glbinding.