123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- namespace AZ
- {
- namespace SceneAPI
- {
- namespace Containers
- {
- template<typename Type>
- ProxyPointer<Type>::ProxyPointer(const Type& value)
- : m_value(value)
- {
- }
- template<typename Type>
- Type& ProxyPointer<Type>::operator*()
- {
- return m_value;
- }
- template<typename Type>
- const Type& ProxyPointer<Type>::operator*() const
- {
- return m_value;
- }
- template<typename Type>
- Type* ProxyPointer<Type>::operator->()
- {
- return &m_value;
- }
- template<typename Type>
- const Type* ProxyPointer<Type>::operator->() const
- {
- return &m_value;
- }
- template<typename Type>
- ProxyPointer<Type&>::ProxyPointer(Type& value)
- : m_value(value)
- {
- }
- template<typename Type>
- Type& ProxyPointer<Type&>::operator*()
- {
- return m_value;
- }
- template<typename Type>
- const Type& ProxyPointer<Type&>::operator*() const
- {
- return m_value;
- }
- template<typename Type>
- Type* ProxyPointer<Type&>::operator->()
- {
- return &m_value;
- }
- template<typename Type>
- const Type* ProxyPointer<Type&>::operator->() const
- {
- return &m_value;
- }
- } // Containers
- } // SceneAPI
- } // AZ
|