OverSim
VastDefs.cc File Reference
#include "VastDefs.h"

Go to the source code of this file.

Functions

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

Detailed Description

Author
Helge Backhaus

Definition in file VastDefs.cc.

Function Documentation

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

Definition at line 39 of file VastDefs.cc.

{
Stream << "Type: ";
if(s.type & UNDEF) Stream << "Undefined ";
if(s.type & THIS) Stream << "This ";
if(s.type & ENCLOSING) Stream << "Enclosing ";
if(s.type & NEIGHBOR) Stream << "Inner ";
if(s.type & BOUNDARY) Stream << "Boundary ";
if(s.type & NEW) Stream << "Discovered ";
return Stream << " IP: " << s.addr.getIp();
}