#include "ProxNodeHandle.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) |
Definition in file ProxNodeHandle.cc.
| #define MAXTIME_DBL 9223372036.854775807 |
Definition at line 30 of file ProxNodeHandle.cc.
Referenced by Prox::operator simtime_t().
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Prox & | prox | |||
| ) |
Definition at line 76 of file ProxNodeHandle.cc.
{
if (prox == Prox::PROX_SELF) os << "[self]";
else if (prox == Prox::PROX_UNKNOWN) os << "[unknown]";
else if (prox == Prox::PROX_TIMEOUT) os << "[timeout]";
else {
os << prox.proximity;
if (prox.accuracy != 1) os << " (a=" << prox.accuracy << ")";
}
return os;
}
1.7.1