QuonPDefs.cc File Reference


Detailed Description

Author:
Helge Backhaus

Definition in file QuonPDefs.cc.

#include <QuonPDefs.h>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &Stream, const QPBoundingBox &box)
std::ostream & operator<< (std::ostream &Stream, const QPCircle &circle)
std::ostream & operator<< (std::ostream &Stream, const QPSite &s)


Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const QPSite &  s 
)

Definition at line 113 of file QuonPDefs.cc.

00114 {
00115     Stream << s.address.ip << ":" << s.address.port << " Type: ";
00116     switch(s.type) {
00117         case QUNDEFINED:
00118             Stream << "\"Undefined\"";
00119             break;
00120         case QTHIS:
00121             Stream << "\"Self\"";
00122             break;
00123         case QNEIGHBOR:
00124             Stream << "\"Direct Neighbor\"";
00125             break;
00126         case QBINDING:
00127             Stream << "\"Binding Neighbor\"";
00128             break;
00129         case QSOFT:
00130             Stream << "\"Softstate Neighbor\"";
00131             break;
00132     }
00133     Stream << " Position: " << s.position;
00134     return Stream;
00135 }

std::ostream& operator<< ( std::ostream &  Stream,
const QPCircle &  circle 
)

Definition at line 99 of file QuonPDefs.cc.

00100 {
00101     return Stream << circle.center << " - " << 2.0 * circle.radius;
00102 }

std::ostream& operator<< ( std::ostream &  Stream,
const QPBoundingBox &  box 
)

Definition at line 69 of file QuonPDefs.cc.

00070 {
00071     return Stream << box.tl << " - " << box.br;
00072 }


Generated on Wed Mar 25 16:32:50 2009 for OverSim by  doxygen 1.5.5