OGLplus (0.52.0) a C++ wrapper for OpenGL

reference.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_OBJECT_REFERENCE_1405011014_HPP
14 #define OGLPLUS_OBJECT_REFERENCE_1405011014_HPP
15 
17 
18 namespace oglplus {
19 
20 template <typename ObjectOps>
21 class Object;
22 
24 
38 template <typename Object>
39 class Reference
40  : public Object
41 {
42 private:
43  typedef typename Classify<Object>::ObjTag ObjTag;
44 public:
45  Reference(ObjectName<ObjTag> object)
46  {
47  this->_copy(object);
48  }
49 };
50 
51 template <typename ObjectOps>
52 struct Reference<Object<ObjectOps>>
53  : public Reference<ObjectOps>
54 {
55 private:
56  typedef typename Classify<Object<ObjectOps>>::ObjTag ObjTag;
57 public:
58  Reference(ObjectName<ObjTag> object)
59  : Reference<ObjectOps>(object)
60  { }
61 };
62 
63 } // namespace oglplus
64 
65 #endif // include guard
Base template for all "named" objects.

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