Noise Modeler Library  0.1
Library for procedurally generating noise-based terrains and other content
 All Classes Files Functions Variables Enumerations Enumerator Groups Pages
userdataprovider.hpp
1 #ifndef NM_USERDATAPROVIDER_HPP
2 #define NM_USERDATAPROVIDER_HPP
3 
4 namespace nm {
5 
11 {
12 public:
13  public:
14  virtual ~UserDataProvider(){}
15  void* getUserData() const {return m_userData;}
16  void setUserData(void* userData) {m_userData = userData;}
17 // UserDataProvider (const UserDataProvider& other):m_userData(other.m_userData){}
18 // UserDataProvider& operator=(const UserDataProvider&){return *this;}
19 protected:
20  UserDataProvider():m_userData(nullptr){}
21 private:
22  void* m_userData;
23 };
24 
25 } // namespace nm
26 
27 #endif // NM_USERDATAPROVIDER_HPP
Base class for stuff that needs to provide user data in form of a void* pointer.
Definition: userdataprovider.hpp:10