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) 2008 INRIA | 3 * Copyright (c) 2008 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 14 matching lines...) Expand all Loading... |
25 /** | 25 /** |
26 * \file | 26 * \file |
27 * \ingroup attribute_Double | 27 * \ingroup attribute_Double |
28 * ns3::DoubleValue attribute value implementation. | 28 * ns3::DoubleValue attribute value implementation. |
29 */ | 29 */ |
30 | 30 |
31 namespace ns3 { | 31 namespace ns3 { |
32 | 32 |
33 NS_LOG_COMPONENT_DEFINE ("Double"); | 33 NS_LOG_COMPONENT_DEFINE ("Double"); |
34 | 34 |
35 ATTRIBUTE_VALUE_IMPLEMENT_WITH_NAME (double, Double); | 35 ATTRIBUTE_VALUE_IMPLEMENT_WITH_NAME_LIB (double, Double,NS3CORELIB); |
36 | 36 |
37 /** Namespace for implementation details. */ | 37 /** Namespace for implementation details. */ |
38 namespace internal { | 38 namespace internal { |
39 | 39 |
40 /** | 40 /** |
41 * \ingroup attribute_Double | 41 * \ingroup attribute_Double |
42 * Make a Double attribute checker with embedded numeric type name. | 42 * Make a Double attribute checker with embedded numeric type name. |
43 * | 43 * |
44 * \param [in] min The minimum allowed value. | 44 * \param [in] min The minimum allowed value. |
45 * \param [in] max The maximum allowed value. | 45 * \param [in] max The maximum allowed value. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 double m_minValue; | 97 double m_minValue; |
98 double m_maxValue; | 98 double m_maxValue; |
99 std::string m_name; | 99 std::string m_name; |
100 } *checker = new Checker (min, max, name); | 100 } *checker = new Checker (min, max, name); |
101 return Ptr<const AttributeChecker> (checker, false); | 101 return Ptr<const AttributeChecker> (checker, false); |
102 } | 102 } |
103 | 103 |
104 } // namespace internal | 104 } // namespace internal |
105 | 105 |
106 } // namespace ns3 | 106 } // namespace ns3 |
OLD | NEW |