VastDefs.cc File Reference


Detailed Description

Author:
Helge Backhaus

#include "VastDefs.h"

Functions

std::ostream & operator<< (std::ostream &Stream, const Point p)
bool operator< (const Point a, const Point b)
std::ostream & operator<< (std::ostream &Stream, const Site s)


Function Documentation

bool operator< ( const Point  a,
const Point  b 
)

00038 {
00039     if(a.y == b.y) return a.x < b.x;
00040     else return a.y < b.y;
00041 }

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

00056 {
00057     Stream  << "Type: ";
00058     if(s.type & UNDEF) Stream << "Undefined ";
00059     if(s.type & THIS) Stream << "This ";
00060     if(s.type & ENCLOSING) Stream << "Enclosing ";
00061     if(s.type & NEIGHBOR) Stream << "Inner ";
00062     if(s.type & BOUNDARY) Stream << "Boundary ";
00063     if(s.type & NEW) Stream << "Discovered ";
00064     return Stream << "  IP: " << s.addr.ip;
00065 }

std::ostream& operator<< ( std::ostream &  Stream,
const Point  p 
)

00033 {
00034     return Stream << "Position: [" << p.x << ", " << p.y << "]";
00035 }


Generated on Wed Apr 4 13:37:06 2007 for ITM OverSim by  doxygen 1.4.7