Definition in file BasePastry.cc.
#include <sstream>
#include <IPAddressResolver.h>
#include <IPvXAddress.h>
#include <IInterfaceTable.h>
#include <IPv4InterfaceData.h>
#include <RpcMacros.h>
#include <InitStages.h>
#include <NeighborCache.h>
#include <GlobalStatistics.h>
#include <BootstrapList.h>
#include <assert.h>
#include "BasePastry.h"
Go to the source code of this file.
Functions | |
| bool | stateMsgIsSmaller (const PastryStateMsgHandle &hnd1, const PastryStateMsgHandle &hnd2) |
| predicate for comparing two pointers to PastryStateMessages based on their joinHopCount. | |
| std::ostream & | operator<< (std::ostream &os, const PastryStateMsgProximity pr) |
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const PastryStateMsgProximity | pr | |||
| ) |
Definition at line 1357 of file BasePastry.cc.
01358 { 01359 os << "PastryStateMsgProximity {" << endl; 01360 os << " pr_rt {" << endl; 01361 for (std::vector<simtime_t>::const_iterator i = pr.pr_rt.begin(); 01362 i != pr.pr_rt.end(); ++i) { 01363 os << " " << *i << endl; 01364 } 01365 os << " }" << endl; 01366 os << " pr_ls {" << endl; 01367 for (std::vector<simtime_t>::const_iterator i = pr.pr_ls.begin(); 01368 i != pr.pr_ls.end(); ++i) { 01369 os << " " << *i << endl; 01370 } 01371 os << " }" << endl; 01372 os << " pr_ns {" << endl; 01373 for (std::vector<simtime_t>::const_iterator i = pr.pr_ns.begin(); 01374 i != pr.pr_ns.end(); ++i) { 01375 os << " " << *i << endl; 01376 } 01377 os << " }" << endl; 01378 os << "}" << endl; 01379 return os; 01380 }
| bool stateMsgIsSmaller | ( | const PastryStateMsgHandle & | hnd1, | |
| const PastryStateMsgHandle & | hnd2 | |||
| ) |
predicate for comparing two pointers to PastryStateMessages based on their joinHopCount.
Needed for sorting the received PastryStateMessages.
Definition at line 1351 of file BasePastry.cc.
Referenced by Pastry::handleStateMessage(), and Pastry::handleTimerEvent().
1.5.5