Public Attributes | Friends

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.

{
    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

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: