MCPcopy Create free account
hub / github.com/Kitware/VTK / operator==

Method operator==

Common/DataModel/vtkDataObjectTreeRange.h:93–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 pointer operator->() const { return this->GetData(); }
92
93 friend bool operator==(const DataObjectTreeIterator& lhs, const DataObjectTreeIterator& rhs)
94 {
95 // A null internal iterator means it is an 'end' sentinel.
96 InternalIterator* l = lhs.Iterator;
97 InternalIterator* r = rhs.Iterator;
98
99 if (!r && !l)
100 { // end == end
101 return true;
102 }
103 else if (!r)
104 { // right is end
105 return l->IsDoneWithTraversal() != 0;
106 }
107 else if (!l)
108 { // left is end
109 return r->IsDoneWithTraversal() != 0;
110 }
111 else
112 { // Both iterators are valid, check unique idx:
113 return r->GetCurrentFlatIndex() == l->GetCurrentFlatIndex();
114 }
115 }
116
117 friend bool operator!=(const DataObjectTreeIterator& lhs, const DataObjectTreeIterator& rhs)
118 {

Callers

nothing calls this directly

Calls 2

GetCurrentFlatIndexMethod · 0.80
IsDoneWithTraversalMethod · 0.45

Tested by

no test coverage detected