MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / addDirToSymbolsMap

Method addDirToSymbolsMap

erpcgen/src/types/Type.cpp:399–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void Group::addDirToSymbolsMap(Symbol *symbol, param_direction_t dir)
400{
401 Log::info("Adding direction %d for symbol \"%s\"\n", dir, symbol->getName().c_str());
402 auto it = m_symbolDirections.find(symbol);
403 if (it == m_symbolDirections.end())
404 {
405 set<param_direction_t> directions;
406 directions.insert(dir);
407 m_symbolDirections[symbol] = directions;
408
409 // add symbol into list of symbols
410 if (find(m_symbols.begin(), m_symbols.end(), symbol) == m_symbols.end())
411 {
412 m_symbols.push_back(symbol);
413 }
414 return;
415 }
416
417 it->second.insert(dir);
418}
419
420void Group::setTemplate(cpptempl::data_map groupTemplate)
421{

Callers 1

findGroupDataTypesMethod · 0.80

Calls 4

push_backMethod · 0.80
getNameMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected