OGLplus (0.45.0) a C++ wrapper for OpenGL

oglplus::Managed< ObjectOps > Class Template Reference

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

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

Inherits oglplus::Object< ObjectOps >.

Detailed Description

template<typename ObjectOps>
class oglplus::Managed< ObjectOps >

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 copy of the "master" object (with the knowledge that the original will be kept alive during the whole lifetime of the copy) is needed. The Managed template class allows to do such temporary copies 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.

Managed instances are may for be example created when accessing or iterating through the elements of an Array.


The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/fwd.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 Wed Apr 30 2014 by Doxygen (version 1.8.4).