OverSim
QuonHelper.cc File Reference
#include <QuonHelper.h>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &Stream, const QuonAOI &aoi)
std::ostream & operator<< (std::ostream &Stream, const QuonSite &s)

Detailed Description

Author
Helge Backhaus
Stephan Krause

Definition in file QuonHelper.cc.

Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const QuonAOI aoi 
)

Definition at line 58 of file QuonHelper.cc.

{
return Stream << aoi.center << " - " << aoi.radius;
}
std::ostream& operator<< ( std::ostream &  Stream,
const QuonSite s 
)

Definition at line 73 of file QuonHelper.cc.

{
Stream << s.address.getIp() << ":" << s.address.getPort() << " Type: ";
switch(s.type) {
case QUNDEFINED:
if( s.softNeighbor) {
Stream << "\"Softstate Neighbor\"";
} else {
Stream << "\"Undefined\"";
}
break;
case QTHIS:
Stream << "\"Self\"";
break;
case QNEIGHBOR:
Stream << "\"Direct Neighbor\"";
break;
case QBINDING:
Stream << "\"Binding Neighbor\"";
break;
break;
}
Stream << " Position: " << s.position;
return Stream;
}