OverSim
DHTDataStorage.cc File Reference
#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)

Detailed Description

Author
Ingmar Baumgart

Definition in file DHTDataStorage.cc.

Function Documentation

Define_Module ( DHTDataStorage  )
std::ostream& operator<< ( std::ostream &  os,
const DhtDataEntry  entry 
)

Definition at line 33 of file DHTDataStorage.cc.

{
os << "Value: " << entry.value
<< " Kind: " << entry.kind
<< " ID: " << entry.id
<< " Endtime: " << entry.ttlMessage->getArrivalTime()
<< " Responsible: " << entry.responsible
<< " SourceNode: " << entry.sourceNode;
if (entry.siblingVote.size()) {
os << " siblingVote:";
for (SiblingVoteMap::const_iterator it = entry.siblingVote.begin();
it != entry.siblingVote.end(); it++) {
os << " " << it->first << " (" << it->second.size() << ")";
}
}
return os;
}