OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::Reference< ObjectT > Class Template Reference

Allows to make managed copies of instances of Object. More...

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

Inherits oglplus::Object< ObjectOps >.

Detailed Description

template<typename ObjectT>
class oglplus::Reference< ObjectT >

Allows to make managed copies of instances of Object.

For obvious reasons objects are not copyable, only movable. There may however be situations where a temporary reference to the "master" object (with the knowledge that the original will be kept alive during the whole lifetime of the copy) is needed. The Reference template class allows to do such temporary references which have the same members and friend functions as the original object, and can be use in the same way, provided that the original instance is not destroyed before the managed copy.

Instances of Reference are may be for example created when accessing or iterating through the elements of an Sequence.


The documentation for this class was generated from the following files:
  • /home/chochlik/devel/oglplus/include/oglplus/fwd.hpp
  • /home/chochlik/devel/oglplus/include/oglplus/object/reference.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).