Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
TIteratorProxy.h
Go to the documentation of this file.
1#pragma once
2
3namespace ph
4{
5
6template<typename ContainerType>
7class TIteratorProxy final
8{
9public:
10 explicit TIteratorProxy(ContainerType& container) :
11 m_container(container)
12 {}
13
14 inline typename ContainerType::iterator begin()
15 {
16 return m_container.begin();
17 }
18
19 inline typename ContainerType::iterator end()
20 {
21 return m_container.end();
22 }
23
24private:
25 ContainerType& m_container;
26};
27
28}// end namespace ph
Definition TIteratorProxy.h:8
ContainerType::iterator begin()
Definition TIteratorProxy.h:14
TIteratorProxy(ContainerType &container)
Definition TIteratorProxy.h:10
ContainerType::iterator end()
Definition TIteratorProxy.h:19
The root for all renderer implementations.
Definition EEngineProject.h:6