LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2008 INRIA | 3 * Copyright (c) 2008 INRIA |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 Ipv4InterfaceContainer::Iterator | 46 Ipv4InterfaceContainer::Iterator |
47 Ipv4InterfaceContainer::End (void) const | 47 Ipv4InterfaceContainer::End (void) const |
48 { | 48 { |
49 return m_interfaces.end (); | 49 return m_interfaces.end (); |
50 } | 50 } |
51 | 51 |
52 uint32_t | 52 uint32_t |
53 Ipv4InterfaceContainer::GetN (void) const | 53 Ipv4InterfaceContainer::GetN (void) const |
54 { | 54 { |
55 return m_interfaces.size (); | 55 return static_cast<uint32_t> (m_interfaces.size ()); |
56 } | 56 } |
57 | 57 |
58 Ipv4Address | 58 Ipv4Address |
59 Ipv4InterfaceContainer::GetAddress (uint32_t i, uint32_t j) const | 59 Ipv4InterfaceContainer::GetAddress (uint32_t i, uint32_t j) const |
60 { | 60 { |
61 Ptr<Ipv4> ipv4 = m_interfaces[i].first; | 61 Ptr<Ipv4> ipv4 = m_interfaces[i].first; |
62 uint32_t interface = m_interfaces[i].second; | 62 uint32_t interface = m_interfaces[i].second; |
63 return ipv4->GetAddress (interface, j).GetLocal (); | 63 return ipv4->GetAddress (interface, j).GetLocal (); |
64 } | 64 } |
65 | 65 |
(...skipping 21 matching lines...) Expand all Loading... |
87 } | 87 } |
88 | 88 |
89 std::pair<Ptr<Ipv4>, uint32_t> | 89 std::pair<Ptr<Ipv4>, uint32_t> |
90 Ipv4InterfaceContainer::Get (uint32_t i) const | 90 Ipv4InterfaceContainer::Get (uint32_t i) const |
91 { | 91 { |
92 return m_interfaces[i]; | 92 return m_interfaces[i]; |
93 } | 93 } |
94 | 94 |
95 | 95 |
96 } // namespace ns3 | 96 } // namespace ns3 |
LEFT | RIGHT |