------------------------------------------------------------------------------
| 42 | |
| 43 | //------------------------------------------------------------------------------ |
| 44 | vtkInformationObjectBaseVectorValue* vtkInformationObjectBaseVectorKey::GetObjectBaseVector( |
| 45 | vtkInformation* info) |
| 46 | { |
| 47 | // Grab the vector associated with this key. |
| 48 | vtkInformationObjectBaseVectorValue* base = |
| 49 | static_cast<vtkInformationObjectBaseVectorValue*>(this->GetAsObjectBase(info)); |
| 50 | |
| 51 | // If we don't already have a vector then associated, |
| 52 | // we will create it here. |
| 53 | if (base == nullptr) |
| 54 | { |
| 55 | base = new vtkInformationObjectBaseVectorValue; |
| 56 | base->InitializeObjectBase(); |
| 57 | this->SetAsObjectBase(info, base); |
| 58 | base->Delete(); |
| 59 | } |
| 60 | |
| 61 | return base; |
| 62 | } |
| 63 | |
| 64 | //------------------------------------------------------------------------------ |
| 65 | bool vtkInformationObjectBaseVectorKey::ValidateDerivedType( |
no test coverage detected