| 58 | |
| 59 | public: |
| 60 | struct ConstIterator { |
| 61 | _FORCE_INLINE_ const Variant &operator*() const; |
| 62 | _FORCE_INLINE_ const Variant *operator->() const; |
| 63 | |
| 64 | _FORCE_INLINE_ ConstIterator &operator++(); |
| 65 | _FORCE_INLINE_ ConstIterator &operator--(); |
| 66 | |
| 67 | _FORCE_INLINE_ bool operator==(const ConstIterator &p_other) const { return element_ptr == p_other.element_ptr; } |
| 68 | _FORCE_INLINE_ bool operator!=(const ConstIterator &p_other) const { return element_ptr != p_other.element_ptr; } |
| 69 | |
| 70 | _FORCE_INLINE_ ConstIterator(const Variant *p_element_ptr) : |
| 71 | element_ptr(p_element_ptr) {} |
| 72 | _FORCE_INLINE_ ConstIterator() {} |
| 73 | _FORCE_INLINE_ ConstIterator(const ConstIterator &p_other) : |
| 74 | element_ptr(p_other.element_ptr) {} |
| 75 | |
| 76 | _FORCE_INLINE_ ConstIterator &operator=(const ConstIterator &p_other) { |
| 77 | element_ptr = p_other.element_ptr; |
| 78 | return *this; |
| 79 | } |
| 80 | |
| 81 | private: |
| 82 | const Variant *element_ptr = nullptr; |
| 83 | }; |
| 84 | |
| 85 | struct Iterator { |
| 86 | _FORCE_INLINE_ Variant &operator*() const; |