39 flows.push_back(*entry);
45 flows.push_back(entry);
50 for(
auto& item :
flows)
52 if (item.getFlow() == flow)
61 const std::string& qosId)
63 for (
auto& item :
flows)
65 if ((item.getFlow()->getDstApni().getApn().getName() == addr)
66 && !item.getFlow()->getConId().getQoSId().compare(qosId))
75 const std::string& qosId)
77 for(
auto& item :
flows)
79 if ((item.getFlow()->getDstAddr().getApn().getName() == addr) &&
80 !item.getFlow()->getConId().getQoSId().compare(qosId) )
91 while (i !=
flows.end())
93 if (i->getFlow() == flow)
Class representing flow object with attributes from specs.
void insert(const NM1FlowTableItem *entry)
virtual void initialize()
NM1FlowTableItem * findFlowByDstAddr(const std::string &addr, const std::string &qosId)
Define_Module(NM1FlowTable)
NM1FlowTableItem * findFlowByDstApni(const std::string &addr, const std::string &qosId)
FlTable::iterator FlTableIter
NM1FlowTableItem * lookup(Flow *flow)
virtual void handleMessage(cMessage *msg)