LEFT | RIGHT |
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 * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle. | 4 * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle. |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
8 * published by the Free Software Foundation; | 8 * published by the Free Software Foundation; |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 EnergySourceContainer::Iterator | 75 EnergySourceContainer::Iterator |
76 EnergySourceContainer::End (void) const | 76 EnergySourceContainer::End (void) const |
77 { | 77 { |
78 return m_sources.end (); | 78 return m_sources.end (); |
79 } | 79 } |
80 | 80 |
81 uint32_t | 81 uint32_t |
82 EnergySourceContainer::GetN (void) const | 82 EnergySourceContainer::GetN (void) const |
83 { | 83 { |
84 return static_cast<uint32_t>(m_sources.size ()); | 84 return static_cast<uint32_t> (m_sources.size ()); |
85 } | 85 } |
86 | 86 |
87 Ptr<EnergySource> | 87 Ptr<EnergySource> |
88 EnergySourceContainer::Get (uint32_t i) const | 88 EnergySourceContainer::Get (uint32_t i) const |
89 { | 89 { |
90 return m_sources[i]; | 90 return m_sources[i]; |
91 } | 91 } |
92 | 92 |
93 void | 93 void |
94 EnergySourceContainer::Add (EnergySourceContainer container) | 94 EnergySourceContainer::Add (EnergySourceContainer container) |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // call Object::Start for all EnergySource objects | 137 // call Object::Start for all EnergySource objects |
138 for (std::vector< Ptr<EnergySource> >::iterator i = m_sources.begin (); | 138 for (std::vector< Ptr<EnergySource> >::iterator i = m_sources.begin (); |
139 i != m_sources.end (); i++) | 139 i != m_sources.end (); i++) |
140 { | 140 { |
141 (*i)->Initialize (); | 141 (*i)->Initialize (); |
142 (*i)->InitializeDeviceModels (); | 142 (*i)->InitializeDeviceModels (); |
143 } | 143 } |
144 } | 144 } |
145 | 145 |
146 } // namespace ns3 | 146 } // namespace ns3 |
LEFT | RIGHT |