MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / removeVariable

Method removeVariable

Externals/MathMLSolver/src/MathMLSymbolTable.cpp:40–53  ·  view source on GitHub ↗

---------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

38
39 //---------------------------------------------------------------------------------
40 AST::INode* SymbolTable::removeVariable( const String& name )
41 {
42 SymbolTable::VariableMap::iterator it = findVariable(name);
43
44 if ( it != mVariables.end() )
45 {
46 AST::INode* node = ( *it ).second;
47 mVariables.erase( it );
48 return node;
49 }
50
51 //variable not found
52 return 0;
53 }
54
55 //---------------------------------------------------------------------------------
56 const SymbolTable::VariableMap& SymbolTable::getVariables() const

Callers

nothing calls this directly

Calls 2

eraseMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected