MCPcopy Create free account
hub / github.com/SoarGroup/Soar / remove

Method remove

IDE Projects/include/sml_ObjectMap.h:136–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 bool remove(char const* pName, bool deleteObject = true)
137 {
138 InternalMapIter mapIter = m_Map.find(pName);
139
140 if (mapIter == m_Map.end())
141 {
142 return false ;
143 }
144
145 DataType pObject = mapIter->second ;
146
147 if (deleteObject)
148 {
149 delete pObject ;
150 }
151
152 m_Map.erase(mapIter) ;
153
154 return true ;
155 }
156 };
157
158}//closes namespace

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected