------------------------------------------------------------------------------ Description: Add attribute `a' at the end.
| 209 | // Description: |
| 210 | // Add attribute `a' at the end. |
| 211 | void vtkGenericAttributeCollection::InsertNextAttribute(vtkGenericAttribute* a) |
| 212 | { |
| 213 | assert("pre: a_exists" && a != nullptr); |
| 214 | #ifndef NDEBUG |
| 215 | int oldnumber = this->GetNumberOfAttributes(); |
| 216 | #endif |
| 217 | |
| 218 | this->AttributeInternalVector->Vector.push_back(a); |
| 219 | this->AttributeIndices->Vector.push_back(0); // a dummy default value |
| 220 | a->Register(this); |
| 221 | this->Modified(); |
| 222 | |
| 223 | assert("post: more_items" && this->GetNumberOfAttributes() == oldnumber + 1); |
| 224 | assert("post: a_is_set" && this->GetAttribute(this->GetNumberOfAttributes() - 1) == a); |
| 225 | } |
| 226 | |
| 227 | //------------------------------------------------------------------------------ |
| 228 | // Description: |
no test coverage detected