Definition in file NeighborCache.cc.
#include <cassert>
#include <TransportAddress.h>
#include <NodeHandle.h>
#include <GlobalStatisticsAccess.h>
#include <Vivaldi.h>
#include "NeighborCache.h"
Go to the source code of this file.
Functions | |
| std::ostream & | operator<< (std::ostream &os, const NeighborCache::NeighborCacheEntry &entry) |
| Define_Module (NeighborCache) | |
| Define_Module | ( | NeighborCache | ) |
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const NeighborCache::NeighborCacheEntry & | entry | |||
| ) |
Definition at line 37 of file NeighborCache.cc.
00039 { 00040 os << entry.rtt << " (inserted: " << entry.insertTime 00041 << ", #contexts: "; 00042 if (entry.waitingContexts == NULL) os << "0"; 00043 else os << entry.waitingContexts->pingContexts.size(); 00044 os << ", key: " 00045 << (entry.nodeRef.isUnspecified() ? "<unspec>" 00046 : entry.nodeRef.key.toString(16)) 00047 << ", coordinates: <"; 00048 if (entry.coordinates.size() == 0) { 00049 os << "unspec"; 00050 } else { 00051 for (uint32_t i = 0; i < entry.coordinates.size(); ++i) { 00052 if (i != 0) os << ", "; 00053 os << entry.coordinates[i]; 00054 } 00055 } 00056 os << ">"; 00057 if (entry.coordErr >= 0) os << ", error: " << entry.coordErr; 00058 os << ")"; 00059 00060 return os; 00061 }
1.5.5