MCPcopy Create free account
hub / github.com/Kitware/VTK / Union

Method Union

Filters/Parallel/vtkCleanArrays.cxx:157–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 }
156 }
157 void Union(const vtkArraySet& other)
158 {
159 if (this->Valid && other.Valid)
160 {
161 vtkCleanArrays::vtkArraySet setC;
162 std::set_union(
163 this->begin(), this->end(), other.begin(), other.end(), std::inserter(setC, setC.begin()));
164 setC.MarkValid();
165 this->swap(setC);
166 }
167 else if (other.Valid)
168 {
169 *this = other;
170 }
171 }
172
173 // Fill up \c this with arrays from \c dsa
174 void Initialize(vtkFieldData* dsa)

Callers 7

UnionStreamsFunction · 0.45
RequestDataMethod · 0.45
RequestDataMethod · 0.45
ConvertMethod · 0.45
RequestDataMethod · 0.45

Calls 4

MarkValidMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
swapMethod · 0.45

Tested by

no test coverage detected