View.inl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #pragma once
  2. /*
  3. * Copyright (c) Contributors to the Open 3D Engine Project.
  4. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. *
  6. * SPDX-License-Identifier: Apache-2.0 OR MIT
  7. *
  8. */
  9. namespace AZ
  10. {
  11. namespace SceneAPI
  12. {
  13. namespace Containers
  14. {
  15. namespace Views
  16. {
  17. template<typename Iterator>
  18. View<Iterator>::View(Iterator begin, Iterator end)
  19. : m_begin(begin)
  20. , m_end(end)
  21. {
  22. }
  23. template<typename Iterator>
  24. Iterator View<Iterator>::begin()
  25. {
  26. return m_begin;
  27. }
  28. template<typename Iterator>
  29. Iterator View<Iterator>::end()
  30. {
  31. return m_end;
  32. }
  33. template<typename Iterator>
  34. Iterator View<Iterator>::begin() const
  35. {
  36. return m_begin;
  37. }
  38. template<typename Iterator>
  39. Iterator View<Iterator>::end() const
  40. {
  41. return m_end;
  42. }
  43. template<typename Iterator>
  44. Iterator View<Iterator>::cbegin() const
  45. {
  46. return m_begin;
  47. }
  48. template<typename Iterator>
  49. Iterator View<Iterator>::cend() const
  50. {
  51. return m_end;
  52. }
  53. template<typename Iterator>
  54. [[nodiscard]] bool View<Iterator>::empty() const
  55. {
  56. return m_begin == m_end;
  57. }
  58. }; // Views
  59. } // Containers
  60. } // SceneAPI
  61. } // AZ