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) 2010 TELEMATICS LAB, DEE - Politecnico di Bari | 3 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari |
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 if (m_anr != 0) | 167 if (m_anr != 0) |
168 { | 168 { |
169 m_anr->Dispose (); | 169 m_anr->Dispose (); |
170 m_anr = 0; | 170 m_anr = 0; |
171 } | 171 } |
172 m_componentCarrierManager->Dispose(); | 172 m_componentCarrierManager->Dispose(); |
173 m_componentCarrierManager = 0; | 173 m_componentCarrierManager = 0; |
174 // ComponentCarrierEnb::DoDispose() will call DoDispose | 174 // ComponentCarrierEnb::DoDispose() will call DoDispose |
175 // of its PHY, MAC, FFR and scheduler instance | 175 // of its PHY, MAC, FFR and scheduler instance |
176 for (uint32_t i = 0; i < m_ccMap.size (); i++) | 176 for (uint8_t i = 0; i < m_ccMap.size (); i++) |
177 { | 177 { |
178 m_ccMap.at (i)->Dispose (); | 178 m_ccMap.at (i)->Dispose (); |
179 m_ccMap.at (i) = 0; | 179 m_ccMap.at (i) = 0; |
180 } | 180 } |
181 ··· | 181 ··· |
182 LteNetDevice::DoDispose (); | 182 LteNetDevice::DoDispose (); |
183 } | 183 } |
184 | 184 |
185 | 185 |
186 | 186 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 uint32_t | 322 uint32_t |
323 LteEnbNetDevice::GetCsgId () const | 323 LteEnbNetDevice::GetCsgId () const |
324 { | 324 { |
325 return m_csgId; | 325 return m_csgId; |
326 } | 326 } |
327 | 327 |
328 void | 328 void |
329 LteEnbNetDevice::SetCsgId (uint32_t csgId) | 329 LteEnbNetDevice::SetCsgId (uint32_t csgId) |
330 { | 330 { |
331 NS_LOG_FUNCTION (this << csgId); | 331 NS_LOG_FUNCTION (this << csgId); |
332 m_csgId = csgId; | 332 m_csgId = static_cast<int16_t>(csgId); |
333 UpdateConfig (); // propagate the change to RRC level | 333 UpdateConfig (); // propagate the change to RRC level |
334 } | 334 } |
335 | 335 |
336 bool | 336 bool |
337 LteEnbNetDevice::GetCsgIndication () const | 337 LteEnbNetDevice::GetCsgIndication () const |
338 { | 338 { |
339 return m_csgIndication; | 339 return m_csgIndication; |
340 } | 340 } |
341 | 341 |
342 void | 342 void |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 { | 418 { |
419 /* | 419 /* |
420 * Lower layers are not ready yet, so do nothing now and expect | 420 * Lower layers are not ready yet, so do nothing now and expect |
421 * ``DoInitialize`` to re-invoke this function. | 421 * ``DoInitialize`` to re-invoke this function. |
422 */ | 422 */ |
423 } | 423 } |
424 } | 424 } |
425 | 425 |
426 | 426 |
427 } // namespace ns3 | 427 } // namespace ns3 |
LEFT | RIGHT |