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) 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_Uinteger | 27 * \ingroup attribute_Uinteger |
28 * ns3::UintegerValue attribute value implementations. | 28 * ns3::UintegerValue attribute value implementations. |
29 */ | 29 */ |
30 | 30 |
31 namespace ns3 { | 31 namespace ns3 { |
32 | 32 |
33 NS_LOG_COMPONENT_DEFINE ("Uinteger"); | 33 NS_LOG_COMPONENT_DEFINE ("Uinteger"); |
34 | 34 |
35 #ifdef _WIN32 | 35 ATTRIBUTE_VALUE_IMPLEMENT_WITH_NAME_LIB (uint64_t, Uinteger, NS3_EXPORT); |
36 ATTRIBUTE_VALUE_IMPLEMENT_WITH_NAME_LIB (uint64_t,Uinteger,NS3CORELIB); | |
37 #else | |
38 ATTRIBUTE_VALUE_IMPLEMENT_WITH_NAME (uint64_t,Uinteger); | |
39 #endif | |
40 | 36 |
41 namespace internal { | 37 namespace internal { |
42 | 38 |
43 /** | 39 /** |
44 * \ingroup attribute_Uinteger | 40 * \ingroup attribute_Uinteger |
45 * Make an Uinteger attribute checker with embedded numeric type name. | 41 * Make an Uinteger attribute checker with embedded numeric type name. |
46 * | 42 * |
47 * \param [in] min The minimum allowed value. | 43 * \param [in] min The minimum allowed value. |
48 * \param [in] max The maximum allowed value. | 44 * \param [in] max The maximum allowed value. |
49 * \param [in] name The original type name ("uint8_t", "uint16_t", _etc_.). | 45 * \param [in] name The original type name ("uint8_t", "uint16_t", _etc_.). |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 uint64_t m_minValue; | 95 uint64_t m_minValue; |
100 uint64_t m_maxValue; | 96 uint64_t m_maxValue; |
101 std::string m_name; | 97 std::string m_name; |
102 } *checker = new Checker (min, max, name); | 98 } *checker = new Checker (min, max, name); |
103 return Ptr<const AttributeChecker> (checker, false); | 99 return Ptr<const AttributeChecker> (checker, false); |
104 } | 100 } |
105 | 101 |
106 } // namespace internal | 102 } // namespace internal |
107 | 103 |
108 } // namespace ns3 | 104 } // namespace ns3 |
LEFT | RIGHT |