#include <omnetpp.h>
#include <hashWatch.h>
#include "DHTDataStorage.h"
Go to the source code of this file.
Functions | |
Define_Module (DHTDataStorage) | |
std::ostream & | operator<< (std::ostream &os, const DhtDataEntry entry) |
Definition in file DHTDataStorage.cc.
Define_Module | ( | DHTDataStorage | ) |
std::ostream& operator<< | ( | std::ostream & | os, | |
const DhtDataEntry | entry | |||
) |
Definition at line 33 of file DHTDataStorage.cc.
00034 { 00035 os << "Value: " << entry.value 00036 << " Kind: " << entry.kind 00037 << " ID: " << entry.id 00038 << " Endtime: " << entry.ttlMessage->getArrivalTime() 00039 << " Responsible: " << entry.responsible 00040 << " SourceNode: " << entry.sourceNode; 00041 00042 if (entry.siblingVote.size()) { 00043 os << " siblingVote:"; 00044 00045 for (SiblingVoteMap::const_iterator it = entry.siblingVote.begin(); 00046 it != entry.siblingVote.end(); it++) { 00047 os << " " << it->first << " (" << it->second.size() << ")"; 00048 } 00049 } 00050 return os; 00051 }