All Classes Files Functions Variables Typedefs Pages
IndexSlot.hpp
1 #pragma once
2 
3 #include "GLIndex.hpp"
4 #include "../config/BaseProxy.hpp"
5 #include <limits>
6 
7 namespace lumina {
8 namespace internal {
9 
10 class IndexSlot : public config::CommonBase {
11 public:
12  IndexSlot(unsigned int& data) : m_data(data) {}
13 
14  IndexSlot& operator=(unsigned int v) {
15  m_data = v;
16  return *this;
17  }
18  IndexSlot& operator=(IndexSlot& copy) {
19  m_data = copy.m_data;
20  return *this;
21  }
22  IndexSlot& operator=(GLIndex) {
23  m_data = std::numeric_limits<unsigned int>::max();
24  return *this;
25  }
26 
27 
28 private:
29  unsigned int& m_data;
30 };
31 
32 }
33 }
Definition: IndexSlot.hpp:10
Definition: SingleBase.hpp:19