------------------------------------------------------------------------------
| 265 | |
| 266 | //------------------------------------------------------------------------------ |
| 267 | void vtkInformationObjectBaseVectorKey::ShallowCopy(vtkInformation* source, vtkInformation* dest) |
| 268 | { |
| 269 | vtkInformationObjectBaseVectorValue* sourceBase = |
| 270 | static_cast<vtkInformationObjectBaseVectorValue*>(this->GetAsObjectBase(source)); |
| 271 | |
| 272 | if (sourceBase == nullptr) |
| 273 | { |
| 274 | this->SetAsObjectBase(dest, nullptr); |
| 275 | return; |
| 276 | } |
| 277 | |
| 278 | int sourceSize = static_cast<int>(sourceBase->GetVector().size()); |
| 279 | vtkInformationObjectBaseVectorValue* destBase = this->GetObjectBaseVector(dest); |
| 280 | |
| 281 | destBase->GetVector().resize(sourceSize); |
| 282 | destBase->GetVector() = sourceBase->GetVector(); |
| 283 | } |
| 284 | |
| 285 | //------------------------------------------------------------------------------ |
| 286 | void vtkInformationObjectBaseVectorKey::Print(ostream& os, vtkInformation* info) |
nothing calls this directly
no test coverage detected