12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- /*
- * 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
|