static inline void addToCoreMap(std::map<std::pair<unsigned, unsigned>,Core*> &coreMap, SystemState &system) { for (SystemState::node_iterator it = system.node_begin(), e = system.node_end(); it != e; ++it) { addToCoreMap(coreMap, **it); } }
static void connectWaveformTracer(SystemState &system, WaveformTracer &waveformTracer) { for (SystemState::node_iterator outerIt = system.node_begin(), outerE = system.node_end(); outerIt != outerE; ++outerIt) { Node &node = **outerIt; for (Node::core_iterator innerIt = node.core_begin(), innerE = node.core_end(); innerIt != innerE; ++innerIt) { Core &core = **innerIt; connectWaveformTracer(core, waveformTracer); } } }