SingularResource.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "ResourceAccess.hpp"
5 
6 namespace iv
7 {
8 
11 template< class RT >
13 {
14 public:
16 
18  Instance * instance() const;
19 
20  void path( ResourcePath const & path );
21 
22  RT const * get() const;
23  RT const & operator*() const;
24  RT const * operator->() const;
25 
26 private:
27  ResourceAccess access;
28  RT const * resource;
29 };
30 
31 }
32 
33 #include "SingularResource.inl"