OverSim
ProxNodeHandle.cc File Reference
#include "ProxNodeHandle.h"

Go to the source code of this file.

Macros

#define MAXTIME_DBL   9223372036

Functions

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

Detailed Description

Author
Bernhard Heep

Definition in file ProxNodeHandle.cc.

Macro Definition Documentation

#define MAXTIME_DBL   9223372036

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 82 of file ProxNodeHandle.cc.

{
if (prox == Prox::PROX_SELF) os << "[self]";
else if (prox == Prox::PROX_UNKNOWN) os << "[unknown]";
else if (prox == Prox::PROX_WAITING) os << "[waiting]";
else if (prox == Prox::PROX_TIMEOUT) os << "[timeout]";
else {
os << prox.proximity;
if (prox.accuracy != 1) os << " (a=" << prox.accuracy << ")";
}
return os;
}
std::ostream& operator<< ( std::ostream &  os,
const ProxTransportAddress address 
)

Definition at line 95 of file ProxNodeHandle.cc.

{
os << static_cast<const TransportAddress&>(address)
<< ", rtt=" << address.getProx();
return os;
}