RINASim  October 2016
Documentation of framework for OMNeT++
PortsLoadRU.cc
Go to the documentation of this file.
1 //
2 // This program is free software: you can redistribute it and/or modify
3 // it under the terms of the GNU Lesser General Public License as published by
4 // the Free Software Foundation, either version 3 of the License, or
5 // (at your option) any later version.
6 //
7 // This program is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 // GNU Lesser General Public License for more details.
11 //
12 // You should have received a copy of the GNU Lesser General Public License
13 // along with this program. If not, see http://www.gnu.org/licenses/.
14 //
15 
16 #include <PortsLoadRU.h>
17 
19  const Address &_addr,
20  const std::string &_qos):IntRoutingUpdate(_addr)
21 {
22  qos = _qos;
23 }
24 
25 std::string PortsLoadRU::getQoS()
26 {
27  return qos;
28 }
29 
31  const std::string & id,
32  linksU links)
33 {
34  entries.insert(linksStEntry(id, links));
35 }
36 
38  linksSt _entries)
39 {
40  entries = _entries;
41 }
42 
44 {
45  return entries.begin();
46 }
48 {
49  return entries.end();
50 }
std::map< std::string, linksU > linksSt
Definition: PLLSCommon.h:38
linksStIt entriesBegin()
Definition: PortsLoadRU.cc:43
std::string qos
Definition: PortsLoadRU.h:38
PortsLoadRU(const Address &_addr, const std::string &_qos)
Definition: PortsLoadRU.cc:18
std::string getQoS()
Definition: PortsLoadRU.cc:25
linksStIt entriesEnd()
Definition: PortsLoadRU.cc:47
std::pair< std::string, linksU > linksStEntry
Definition: PLLSCommon.h:39
linksSt entries
Definition: PortsLoadRU.h:39
void setEntries(linksSt)
Definition: PortsLoadRU.cc:37
linksSt::iterator linksStIt
Definition: PLLSCommon.h:45
Address class holds IPC Process identification.
Definition: Address.h:42
void addEntry(const std::string &, linksU)
Definition: PortsLoadRU.cc:30