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