OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::Object< ObjectOps< OpsTag, ObjTag > > Class Template Reference

Template for GL/AL/etc. objects wrappers. More...

#include </home/chochlik/devel/oglplus/include/oglplus/object/wrap_tpl.hpp>

Inherits oglplus::ObjectTpl< ObjTag, NameHolder >.

Public Types

typedef ObjectSubtype< ObjTag >
::Type 
Subtype
 Object subtype.
 

Public Member Functions

 Object (void)
 Most objects are default constructible.
 
 Object (tag::Generate generate)
 Construction with a specific method of object creation.
 
 Object (tag::Create create)
 Construction with a specific method of object creation.
 
 Object (ObjectDesc &&description)
 A textual description can be attached to objects.
 
 Object (Subtype subtype)
 Construction with subtype specification.
 
 Object (Subtype subtype, ObjectDesc &&description)
 A textual description can be attached to objects.
 
 Object (Object &&temp)
 Objects are move constructible.
 
Object & operator= (Object &&temp)
 Objects are move assignable.
 
const std::string & Description (void) const
 Returns the textual description of this object.
 
 operator Sequence< ObjectName< ObjTag >> (void) const
 Returns a sequence referencing the name of this object. More...
 

Detailed Description

template<typename OpsTag, typename ObjTag>
class oglplus::Object< ObjectOps< OpsTag, ObjTag > >

Template for GL/AL/etc. objects wrappers.

The main purpose of Object is to do lifetime management of the underlying GL/AL/etc. object. It uses the ObjGenDelOps template to create new instance in the constructor and delete it in the destructor.

Since GL/AL don't support object copying Object is also non-copyable.

Member Function Documentation

template<typename ObjTag, typename NameHolder>
oglplus::ObjectTpl< ObjTag, NameHolder >::operator Sequence< ObjectName< ObjTag >> ( void  ) const
inherited

Returns a sequence referencing the name of this object.

Note that the returned sequence must not be used after this object has been destroyed.


The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/object/wrap_tpl.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).