ProxNodeHandle.cc File Reference

#include "ProxNodeHandle.h"
#include <cfloat>
#include "NodeHandle.h"

Go to the source code of this file.

Defines

#define MAXTIME_DBL   9223372036.854775807

Functions

std::ostream & operator<< (std::ostream &os, const Prox &prox)

Detailed Description

Author:
Bernhard Heep

Definition in file ProxNodeHandle.cc.


Define Documentation

#define MAXTIME_DBL   9223372036.854775807

Definition at line 30 of file ProxNodeHandle.cc.

Referenced by Prox::operator simtime_t().


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Prox prox 
)

Definition at line 76 of file ProxNodeHandle.cc.

00077 {
00078     if (prox == Prox::PROX_SELF) os << "[self]";
00079     else if (prox == Prox::PROX_UNKNOWN) os << "[unknown]";
00080     else if (prox == Prox::PROX_TIMEOUT) os << "[timeout]";
00081     else {
00082         os << prox.proximity;
00083         if (prox.accuracy != 1) os << " (a=" << prox.accuracy << ")";
00084     }
00085    return os;
00086 }

Generated on Wed May 26 16:21:15 2010 for OverSim by  doxygen 1.6.3