QuonPRDefs.cc File Reference


Detailed Description

Author:
Helge Backhaus

Definition in file QuonPRDefs.cc.

#include <QuonPRDefs.h>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &Stream, const QPRBoundingBox &box)
std::ostream & operator<< (std::ostream &Stream, const QPRSite &s)
std::ostream & operator<< (std::ostream &Stream, const PRTreeNode &node)


Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const PRTreeNode &  node 
)

Definition at line 329 of file QuonPRDefs.cc.

00330 {
00331     return node.print(Stream);
00332 }

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

Definition at line 182 of file QuonPRDefs.cc.

00183 {
00184     Stream << s.address.ip << ":" << s.address.port << " Type: ";
00185     switch(s.type) {
00186         case QUNDEFINED:
00187             Stream << "\"Undefined\"";
00188         break;
00189         case QTHIS:
00190             Stream << "\"Self\"";
00191         break;
00192         case QNEIGHBOR:
00193             Stream << "\"Direct Neighbor\"";
00194         break;
00195         case QBINDING:
00196             Stream << "\"Binding Neighbor\"";
00197         break;
00198         case QSOFT:
00199             Stream << "\"Softstate Neighbor\"";
00200         break;
00201     }
00202     Stream << " Position: " << s.position;
00203     return Stream;
00204 }

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

Definition at line 167 of file QuonPRDefs.cc.

00168 {
00169     return Stream << box.tl << " - " << box.br;
00170 }


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