------------------------------------------------------------------------------
| 149 | |
| 150 | //------------------------------------------------------------------------------ |
| 151 | const vtkObjectBase* vtkInformation::GetAsObjectBase(const vtkInformationKey* key) const |
| 152 | { |
| 153 | if (key) |
| 154 | { |
| 155 | typedef vtkInformationInternals::MapType MapType; |
| 156 | MapType::const_iterator i = this->Internal->Map.find(const_cast<vtkInformationKey*>(key)); |
| 157 | if (i != this->Internal->Map.end()) |
| 158 | { |
| 159 | return i->second; |
| 160 | } |
| 161 | } |
| 162 | return nullptr; |
| 163 | } |
| 164 | |
| 165 | //------------------------------------------------------------------------------ |
| 166 | vtkObjectBase* vtkInformation::GetAsObjectBase(vtkInformationKey* key) |