------------------------------------------------------------- Description: Searches for a variable the given name in this store. Arguments: name - Name of the variable to unregister. Return Value: Variable with the given name or NULL if it was not found. -------------------------------------------------------------
| 315 | // Variable with the given name or NULL if it was not found. |
| 316 | // ------------------------------------------------------------- |
| 317 | TriVariable* Tr2VariableStore::FindLocalVariable( const char* name ) const |
| 318 | { |
| 319 | if( !name ) |
| 320 | { |
| 321 | return nullptr; |
| 322 | } |
| 323 | auto it = m_variableMap.find( name ); |
| 324 | |
| 325 | return it != m_variableMap.end() ? it->second : nullptr; |
| 326 | } |
| 327 | |
| 328 | // ------------------------------------------------------------- |
| 329 | // Description: |
no test coverage detected