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) 2009 University of Washington | 3 * Copyright (c) 2009 University of Washington |
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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 UanTxMode | 251 UanTxMode |
252 UanModesList::operator[] (uint32_t i) const | 252 UanModesList::operator[] (uint32_t i) const |
253 { | 253 { |
254 NS_ASSERT (i < m_modes.size ()); | 254 NS_ASSERT (i < m_modes.size ()); |
255 return m_modes[i]; | 255 return m_modes[i]; |
256 } | 256 } |
257 | 257 |
258 uint32_t | 258 uint32_t |
259 UanModesList::GetNModes (void) const | 259 UanModesList::GetNModes (void) const |
260 { | 260 { |
261 return m_modes.size (); | 261 return static_cast<uint32_t>(m_modes.size ()); |
262 } | 262 } |
263 | 263 |
264 std::ostream & | 264 std::ostream & |
265 operator << (std::ostream &os, const UanModesList &ml) | 265 operator << (std::ostream &os, const UanModesList &ml) |
266 { | 266 { |
267 | 267 |
268 os << ml.GetNModes () << "|"; | 268 os << ml.GetNModes () << "|"; |
269 | 269 |
270 for (uint32_t i = 0; i < ml.m_modes.size (); i++) | 270 for (uint32_t i = 0; i < ml.m_modes.size (); i++) |
271 { | 271 { |
(...skipping 24 matching lines...) Expand all Loading... |
296 is.setstate (std::ios_base::failbit); | 296 is.setstate (std::ios_base::failbit); |
297 } | 297 } |
298 } | 298 } |
299 | 299 |
300 return is; | 300 return is; |
301 } | 301 } |
302 | 302 |
303 ATTRIBUTE_HELPER_CPP (UanModesList); | 303 ATTRIBUTE_HELPER_CPP (UanModesList); |
304 | 304 |
305 } // namespace ns3 | 305 } // namespace ns3 |
LEFT | RIGHT |