Classes | Functions

PastryNeighborhoodSet.h File Reference

#include <vector>
#include <omnetpp.h>
#include <NodeHandle.h>
#include "PastryStateObject.h"
#include "PastryTypes.h"
#include "PastryMessage_m.h"

Go to the source code of this file.

Classes

class  PastryNeighborhoodSet
 PastryNeighborhoodSet module. More...

Functions

std::ostream & operator<< (std::ostream &os, const PastryExtendedNode &n)
 Stream output operator to make WATCH() do something useful with the neighborhood set.

Detailed Description

Author:
Felix Palmen

Definition in file PastryNeighborhoodSet.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const PastryExtendedNode n 
)

Stream output operator to make WATCH() do something useful with the neighborhood set.

Definition at line 154 of file PastryNeighborhoodSet.cc.

{
    os << n.node << ";";
    if (n.rtt != SimTime::getMaxTime())
        os << " Ping: " << n.rtt;

    return os;
}