Unofficial OpenGL Software Development Kit  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
_int_load_test.hpp
1 #ifndef GENERATED_LOAD_TEST_HPP
2 #define GENERATED_LOAD_TEST_HPP
3 namespace glload
4 {
20  class LoadTest
21  {
22  private:
23  //Safe bool idiom. Joy!
24  typedef void (LoadTest::*bool_type)() const;
25  void big_long_name_that_really_doesnt_matter() const {}
26 
27  public:
29  operator bool_type() const
30  {
31  return m_isLoaded ? &LoadTest::big_long_name_that_really_doesnt_matter : 0;
32  }
33 
35  int GetNumMissing() const {return m_numMissing;}
36 
37  LoadTest() : m_isLoaded(false), m_numMissing(0) {}
38  LoadTest(bool isLoaded, int numMissing) : m_isLoaded(isLoaded), m_numMissing(isLoaded ? numMissing : 0) {}
39  private:
40  bool m_isLoaded;
41  int m_numMissing;
42  };
43 }
44 #endif /*GENERATED_LOAD_TEST_HPP*/