DhtDataEntry Struct Reference

#include <DHTDataStorage.h>

List of all members.

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.

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 }


Member Data Documentation

uint32_t DhtDataEntry::id

Definition at line 61 of file DHTDataStorage.h.

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


The documentation for this struct was generated from the following file:
Generated on Wed May 26 16:21:17 2010 for OverSim by  doxygen 1.6.3