OLD | NEW |
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) 2009 CTTC | 3 * Copyright (c) 2009 CTTC |
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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 NS_LOG_FUNCTION (this << params); | 216 NS_LOG_FUNCTION (this << params); |
217 receiver->StartRx (params); | 217 receiver->StartRx (params); |
218 } | 218 } |
219 | 219 |
220 | 220 |
221 | 221 |
222 uint32_t | 222 uint32_t |
223 SingleModelSpectrumChannel::GetNDevices (void) const | 223 SingleModelSpectrumChannel::GetNDevices (void) const |
224 { | 224 { |
225 NS_LOG_FUNCTION (this); | 225 NS_LOG_FUNCTION (this); |
226 return m_phyList.size (); | 226 return static_cast<uint32_t> (m_phyList.size ()); |
227 } | 227 } |
228 | 228 |
229 | 229 |
230 Ptr<NetDevice> | 230 Ptr<NetDevice> |
231 SingleModelSpectrumChannel::GetDevice (uint32_t i) const | 231 SingleModelSpectrumChannel::GetDevice (uint32_t i) const |
232 { | 232 { |
233 NS_LOG_FUNCTION (this << i); | 233 NS_LOG_FUNCTION (this << i); |
234 return m_phyList.at (i)->GetDevice ()->GetObject<NetDevice> (); | 234 return m_phyList.at (i)->GetDevice ()->GetObject<NetDevice> (); |
235 } | 235 } |
236 | 236 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 269 |
270 Ptr<SpectrumPropagationLossModel> | 270 Ptr<SpectrumPropagationLossModel> |
271 SingleModelSpectrumChannel::GetSpectrumPropagationLossModel (void) | 271 SingleModelSpectrumChannel::GetSpectrumPropagationLossModel (void) |
272 { | 272 { |
273 NS_LOG_FUNCTION (this); | 273 NS_LOG_FUNCTION (this); |
274 return m_spectrumPropagationLoss; | 274 return m_spectrumPropagationLoss; |
275 } | 275 } |
276 | 276 |
277 | 277 |
278 } // namespace ns3 | 278 } // namespace ns3 |
OLD | NEW |