------------------------------------------------------------------------------ Description: Remove Attribute at `i'.
| 253 | // Description: |
| 254 | // Remove Attribute at `i'. |
| 255 | void vtkGenericAttributeCollection::RemoveAttribute(int i) |
| 256 | { |
| 257 | assert("pre: not_empty" && !this->IsEmpty()); |
| 258 | assert("pre: valid_i" && (i >= 0) && (i < this->GetNumberOfAttributes())); |
| 259 | |
| 260 | #ifndef NDEBUG |
| 261 | int oldnumber = this->GetNumberOfAttributes(); |
| 262 | #endif |
| 263 | |
| 264 | this->AttributeInternalVector->Vector[i]->UnRegister(this); |
| 265 | this->AttributeInternalVector->Vector.erase(this->AttributeInternalVector->Vector.begin() + i); |
| 266 | |
| 267 | this->AttributeIndices->Vector.erase(this->AttributeIndices->Vector.begin() + i); |
| 268 | |
| 269 | this->Modified(); |
| 270 | |
| 271 | assert("post: fewer_items" && this->GetNumberOfAttributes() == (oldnumber - 1)); |
| 272 | } |
| 273 | |
| 274 | //------------------------------------------------------------------------------ |
| 275 | // Description: |
nothing calls this directly
no test coverage detected