40 vector<RMTPort* > ret;
44 if(dstAddr ==
"") {
return ret; }
48 if(it != table.end()){
49 int i = intuniform(0, it->second.size()-1);
50 ret.push_back(it->second.at(i));
65 std::ostringstream os;
67 os << this->getName()<<endl;
68 for(
FWDTableIt tIt = table.begin(); tIt != table.end(); tIt++){
69 os <<
"\t" <<tIt->first <<
" -> ";
71 os << p->getFullPath() <<
" ";
92 if(par(
"printAtEnd").boolValue()){
93 EV <<
"-----------------" << endl;
94 EV <<
"Forwarding table::" << endl;
95 EV << toString() <<endl;
96 EV <<
"-----------------" << endl;
std::string getQoSId() const
Getter of selected QoS-cube identifier.
const APN & getIpcAddress() const
Getter of IPC Process address which should be unambiguous within DIF.
vector< RMTPort * > lookup(const PDU *pdu)
virtual ConnectionId & getConnId()
virtual Address & getDstAddr()
Register_Class(MultiMiniTable::MultiMiniTable)
void addReplace(const std::string &addr, vector< RMTPort * > ports)
const std::string & getName() const
Gets APN string name representation.
Address class holds IPC Process identification.
FWDTable::iterator FWDTableIt