MCPcopy Create free account
hub / github.com/carbonengine/trinity / FindLocalVariable

Method FindLocalVariable

trinity/Tr2VariableStore.cpp:317–326  ·  view source on GitHub ↗

------------------------------------------------------------- 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. -------------------------------------------------------------

Source from the content-addressed store, hash-verified

315// Variable with the given name or NULL if it was not found.
316// -------------------------------------------------------------
317TriVariable* 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:

Callers 3

FindVariableMethod · 0.80
GetVariableMethod · 0.80
PyFindLocalVariableFunction · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected