40 std::ostream& operator<< (std::ostream& o, std::map<OverlayKey, ScribeGroup> m )
42 for (std::map<OverlayKey, ScribeGroup>::iterator it = m.begin(); it != m.end(); ++it) {
43 o << it->first <<
"\n";
44 o <<
" Parent: " << it->second.getParent() <<
"\n";
45 o <<
" Status: " << (it->second.getSubscription() ?
"Subscriber\n" :
"Forwarder\n");
46 o <<
" Children (" << it->second.numChildren() <<
"):\n";
47 std::set<NodeHandle>::iterator iit = it->second.getChildrenBegin();
48 for (
int i = it->second.numChildren(); i > 0; --i) {
49 o <<
" " << *iit <<
"\n";
60 typedef std::map<OverlayKey, ScribeGroup>
GroupList;
97 cPolymorphic* context,
98 int rpcId, simtime_t rtt );