Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_systems
ResourceManagementSystem
SingularResource.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
ResourceAccess.hpp
"
4
#include <
ivorium_core/ivorium_core.hpp
>
5
6
namespace
iv
7
{
8
11
template
<
class
RT >
12
class
SingularResource
13
{
14
public
:
15
ClientMarker
cm
;
16
17
SingularResource
(
Instance
* inst,
ResourcePath
const
&
path
=
ResourcePath
() );
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
"