void operator() (Node_ptr node) { for (int i = 0; i < node->SuccessorCount(); i++) { Node_map::iterator item = mMap.find( node->SuccessorAddress(i) ); if (mMap.end() != item) { bool success = node->ConnectSuccessor(i, item->second); if (!success) { message("Failed to connect successor\n"); } } else { message("%p Unable to find successor block with address %p\n", node->Address(), node->SuccessorAddress(i) ); } } }
void operator() (Node_ptr node) { mMap[node->Address()] = node; }