QPRSite Class Reference

#include <QuonPRDefs.h>

List of all members.


Detailed Description

Definition at line 57 of file QuonPRDefs.h.


Public Member Functions

 QPRSite ()

Public Attributes

Vector2D position
PRTreeNode * PRNode
QNeighborType type
NodeHandle address
double AOIwidth
bool dirty
bool alive

Friends

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

Constructor & Destructor Documentation

QPRSite::QPRSite (  ) 

Definition at line 172 of file QuonPRDefs.cc.

00173 {
00174     PRNode = NULL;
00175     type = QUNDEFINED;
00176     dirty = false;
00177     alive = false;
00178     address = NodeHandle::UNSPECIFIED_NODE;
00179     AOIwidth = 0.0;
00180 }


Friends And Related Function Documentation

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

Definition at line 182 of file QuonPRDefs.cc.

00183 {
00184     Stream << s.address.ip << ":" << s.address.port << " Type: ";
00185     switch(s.type) {
00186         case QUNDEFINED:
00187             Stream << "\"Undefined\"";
00188         break;
00189         case QTHIS:
00190             Stream << "\"Self\"";
00191         break;
00192         case QNEIGHBOR:
00193             Stream << "\"Direct Neighbor\"";
00194         break;
00195         case QBINDING:
00196             Stream << "\"Binding Neighbor\"";
00197         break;
00198         case QSOFT:
00199             Stream << "\"Softstate Neighbor\"";
00200         break;
00201     }
00202     Stream << " Position: " << s.position;
00203     return Stream;
00204 }


Member Data Documentation

Definition at line 65 of file QuonPRDefs.h.

Referenced by QuonPR::addSite(), and QPRSite().

Definition at line 66 of file QuonPRDefs.h.

Referenced by QuonPR::addSite(), QuonPR::classifySites(), and QPRSite().

Definition at line 67 of file QuonPRDefs.h.

Referenced by QuonPR::addSite(), and QPRSite().


The documentation for this class was generated from the following files:

Generated on Wed Mar 25 16:32:54 2009 for OverSim by  doxygen 1.5.5