Public Member Functions | Public Attributes | Friends

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.

{
    type = UNDEF;
    innerEdge[0] = false;
    innerEdge[1] = false;
    innerEdge[2] = false;
    outerEdge = false;
    isAdded = false;
    neighborCount = 0;
    addr = NodeHandle::UNSPECIFIED_NODE;
    tstamp = 0.0;
}


Friends And Related Function Documentation

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

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();
}


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: