| 140 | void MarkValid() { this->Valid = 1; } |
| 141 | |
| 142 | void Intersection(const vtkArraySet& other) |
| 143 | { |
| 144 | if (this->Valid && other.Valid) |
| 145 | { |
| 146 | vtkCleanArrays::vtkArraySet setC; |
| 147 | std::set_intersection( |
| 148 | this->begin(), this->end(), other.begin(), other.end(), std::inserter(setC, setC.begin())); |
| 149 | setC.MarkValid(); |
| 150 | this->swap(setC); |
| 151 | } |
| 152 | else if (other.Valid) |
| 153 | { |
| 154 | *this = other; |
| 155 | } |
| 156 | } |
| 157 | void Union(const vtkArraySet& other) |
| 158 | { |
| 159 | if (this->Valid && other.Valid) |
no test coverage detected