Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
TItemPoolInterface.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace ph::editor
6{
7
8template<typename ItemInterface, CWeakHandle Handle>
10{
11public:
12 using ItemInterfaceType = ItemInterface;
13 using HandleType = Handle;
14
15 inline virtual ~TItemPoolInterface() = default;
16
17 virtual ItemInterface* accessItem(const Handle& handle) = 0;
18 virtual const ItemInterface* viewItem(const Handle& handle) const = 0;
19};
20
21}// end namespace ph::editor
Definition TItemPoolInterface.h:10
Handle HandleType
Definition TItemPoolInterface.h:13
virtual ~TItemPoolInterface()=default
ItemInterface ItemInterfaceType
Definition TItemPoolInterface.h:12
virtual ItemInterface * accessItem(const Handle &handle)=0
virtual const ItemInterface * viewItem(const Handle &handle) const =0
Definition ph_editor.h:10