Site Class Reference

#include <VastDefs.h>

List of all members.

Public Member Functions

 Site ()

Public Attributes

Vector2D coord
unsigned char type
bool innerEdge [3]
bool outerEdge
bool isAdded
NodeHandle addr
simtime_t tstamp
int neighborCount
EnclosingSet enclosingSet
EnclosingSet oldEnclosingSet

Friends

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

Detailed Description

Definition at line 57 of file VastDefs.h.


Constructor & Destructor Documentation

Site::Site (  ) 

Definition at line 26 of file VastDefs.cc.

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


Friends And Related Function Documentation

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

Definition at line 39 of file VastDefs.cc.

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


Member Data Documentation

Definition at line 67 of file VastDefs.h.

Referenced by Vast::buildVoronoi(), and Geometry::processEdge().

bool Site::innerEdge[3]

Definition at line 63 of file VastDefs.h.

Referenced by Geometry::processEdge(), and Site().

Definition at line 63 of file VastDefs.h.

Referenced by Site().

Definition at line 66 of file VastDefs.h.

Referenced by Vast::addNode(), and Site().

Definition at line 68 of file VastDefs.h.

Referenced by Vast::buildVoronoi().

Definition at line 63 of file VastDefs.h.

Referenced by Geometry::processEdge(), and Site().

simtime_t Site::tstamp

Definition at line 65 of file VastDefs.h.

Referenced by Site().

unsigned char Site::type

The documentation for this class was generated from the following files:
Generated on Wed May 26 16:21:19 2010 for OverSim by  doxygen 1.6.3