Site Struct Reference

#include <VastDefs.h>

List of all members.


Detailed Description

Vast Definitions.

Some structures needed for building a voronoi diagram and maintaining the overlays neighbors.

Public Member Functions

 Site ()

Public Attributes

Vector2D coord
unsigned char type
bool innerEdge [3]
bool outerEdge
bool isAdded
NodeHandle addr
double tstamp

Friends

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


Constructor & Destructor Documentation

Site::Site (  ) 

00027 {
00028     type = UNDEF;
00029     innerEdge[0] = false;
00030     innerEdge[1] = false;
00031     innerEdge[2] = false;
00032     outerEdge = false;
00033     isAdded = false;
00034     addr = NodeHandle::UNSPECIFIED_NODE;
00035     tstamp = 0.0;
00036 }


Friends And Related Function Documentation

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

00039 {
00040     Stream  << "Type: ";
00041     if(s.type & UNDEF) Stream << "Undefined ";
00042     if(s.type & THIS) Stream << "This ";
00043     if(s.type & ENCLOSING) Stream << "Enclosing ";
00044     if(s.type & NEIGHBOR) Stream << "Inner ";
00045     if(s.type & BOUNDARY) Stream << "Boundary ";
00046     if(s.type & NEW) Stream << "Discovered ";
00047     return Stream << "  IP: " << s.addr.ip;
00048 }


Member Data Documentation

Vector2D Site::coord

unsigned char Site::type

bool Site::innerEdge[3]

bool Site::outerEdge

bool Site::isAdded

NodeHandle Site::addr

double Site::tstamp


The documentation for this struct was generated from the following files:
Generated on Thu Apr 17 13:19:30 2008 for ITM OverSim by  doxygen 1.5.3