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... | |
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.
|
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.