OverSim
DhtDataEntry Struct Reference

#include <DHTDataStorage.h>

Public Attributes

BinaryValue value
uint32_t kind
uint32_t id
cMessage * ttlMessage
bool is_modifiable
NodeHandle sourceNode
bool responsible
SiblingVoteMap siblingVote

Friends

std::ostream & operator<< (std::ostream &Stream, const DhtDataEntry entry)

Detailed Description

Definition at line 51 of file DHTDataStorage.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const DhtDataEntry  entry 
)
friend

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;
}

Member Data Documentation

uint32_t DhtDataEntry::id
bool DhtDataEntry::is_modifiable
uint32_t DhtDataEntry::kind
bool DhtDataEntry::responsible
SiblingVoteMap DhtDataEntry::siblingVote

Definition at line 61 of file DHTDataStorage.h.

Referenced by DHT::handlePutRequest(), and operator<<().

NodeHandle DhtDataEntry::sourceNode
cMessage* DhtDataEntry::ttlMessage

The documentation for this struct was generated from the following file: