MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / ConstIterator

Class ConstIterator

core/variant/array.h:60–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59public:
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;

Callers 3

IteratorClass · 0.70
beginMethod · 0.70
endMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected