Left: | ||
Right: |
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) 2006,2007 INRIA | 3 * Copyright (c) 2006,2007 INRIA |
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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
679 (*this) << std::string (param); | 679 (*this) << std::string (param); |
680 return *this; | 680 return *this; |
681 } | 681 } |
682 | 682 |
683 template<> | 683 template<> |
684 ParameterLogger& | 684 ParameterLogger& |
685 ParameterLogger::operator<< <int8_t>(const int8_t param) | 685 ParameterLogger::operator<< <int8_t>(const int8_t param) |
686 { | 686 { |
687 if (m_first) | 687 if (m_first) |
688 { | 688 { |
689 m_os << static_cast<int16_t>(param); | 689 m_os << static_cast<int16_t> (param); |
690 m_first = false; | 690 m_first = false; |
691 } | 691 } |
692 else | 692 else |
693 { | 693 { |
694 m_os << static_cast<int16_t>(param); | 694 m_os << ", " << static_cast<int16_t> (param); |
695 } | 695 } |
696 return *this; | 696 return *this; |
697 } | 697 } |
698 | 698 |
699 template<> | 699 template<> |
700 ParameterLogger& | 700 ParameterLogger& |
701 ParameterLogger::operator<< <uint8_t>(const uint8_t param) | 701 ParameterLogger::operator<< <uint8_t>(const uint8_t param) |
702 { | 702 { |
703 if (m_first) | 703 if (m_first) |
704 { | 704 { |
705 m_os << static_cast<uint16_t>(param); | 705 m_os << static_cast<uint16_t> (param); |
706 m_first = false; | 706 m_first = false; |
707 } | 707 } |
708 else | 708 else |
709 { | 709 { |
710 m_os << static_cast<uint16_t>(param); | 710 m_os << ", " << static_cast<uint16_t> (param); |
711 } | 711 } |
712 return *this; | 712 return *this; |
713 } | 713 } |
714 | 714 |
Peter Barnes
2018/05/11 21:58:12
This is already in upstream, and unrelated to this
ammo6818-vandals.uidaho.edu
2018/05/16 15:06:28
One of the previous review comments was support fo
| |
715 } // namespace ns3 | 715 } // namespace ns3 |
LEFT | RIGHT |