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) 2015 Universita' degli Studi di Napoli Federico II | 3 * Copyright (c) 2015 Universita' degli Studi di Napoli Federico II |
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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 QueueDiscContainer::ConstIterator | 40 QueueDiscContainer::ConstIterator |
41 QueueDiscContainer::End (void) const | 41 QueueDiscContainer::End (void) const |
42 { | 42 { |
43 return m_queueDiscs.end (); | 43 return m_queueDiscs.end (); |
44 } | 44 } |
45 | 45 |
46 uint32_t | 46 uint32_t |
47 QueueDiscContainer::GetN (void) const | 47 QueueDiscContainer::GetN (void) const |
48 { | 48 { |
49 return m_queueDiscs.size (); | 49 return static_cast<uint32_t>(m_queueDiscs.size ()); |
50 } | 50 } |
51 | 51 |
52 Ptr<QueueDisc> | 52 Ptr<QueueDisc> |
53 QueueDiscContainer::Get (uint32_t i) const | 53 QueueDiscContainer::Get (uint32_t i) const |
54 { | 54 { |
55 return m_queueDiscs[i]; | 55 return m_queueDiscs[i]; |
56 } | 56 } |
57 | 57 |
58 void | 58 void |
59 QueueDiscContainer::Add (QueueDiscContainer other) | 59 QueueDiscContainer::Add (QueueDiscContainer other) |
60 { | 60 { |
61 for (ConstIterator i = other.Begin (); i != other.End (); i++) | 61 for (ConstIterator i = other.Begin (); i != other.End (); i++) |
62 { | 62 { |
63 m_queueDiscs.push_back (*i); | 63 m_queueDiscs.push_back (*i); |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 void | 67 void |
68 QueueDiscContainer::Add (Ptr<QueueDisc> qDisc) | 68 QueueDiscContainer::Add (Ptr<QueueDisc> qDisc) |
69 { | 69 { |
70 m_queueDiscs.push_back (qDisc); | 70 m_queueDiscs.push_back (qDisc); |
71 } | 71 } |
72 | 72 |
73 } // namespace ns3 | 73 } // namespace ns3 |
LEFT | RIGHT |