equal
deleted
inserted
replaced
20 #include "uinteger.h" |
20 #include "uinteger.h" |
21 #include "fatal-error.h" |
21 #include "fatal-error.h" |
22 #include "log.h" |
22 #include "log.h" |
23 #include <sstream> |
23 #include <sstream> |
24 |
24 |
|
25 /** |
|
26 * \file |
|
27 * \ingroup attribute_Uinteger |
|
28 * Uinteger attribute value implementations. |
|
29 */ |
|
30 |
25 namespace ns3 { |
31 namespace ns3 { |
26 |
32 |
27 NS_LOG_COMPONENT_DEFINE ("Uinteger"); |
33 NS_LOG_COMPONENT_DEFINE ("Uinteger"); |
28 |
34 |
29 ATTRIBUTE_VALUE_IMPLEMENT_WITH_NAME (uint64_t,Uinteger); |
35 ATTRIBUTE_VALUE_IMPLEMENT_WITH_NAME (uint64_t,Uinteger); |
30 |
36 |
31 namespace internal { |
37 namespace internal { |
32 |
38 |
|
39 /** |
|
40 * \ingroup attribute_Uinteger |
|
41 * Make an Uinteger attribute checker with embedded numeric type name. |
|
42 * |
|
43 * \param min The minimum allowed value. |
|
44 * \param max The maximum allowed value. |
|
45 * \param name The original type name ("uint8_t", "uint16_t", _etc_.). |
|
46 * \returns The AttributeChecker. |
|
47 */ |
33 Ptr<const AttributeChecker> MakeUintegerChecker (uint64_t min, uint64_t max, std::string name) |
48 Ptr<const AttributeChecker> MakeUintegerChecker (uint64_t min, uint64_t max, std::string name) |
34 { |
49 { |
35 NS_LOG_FUNCTION (min << max << name); |
50 NS_LOG_FUNCTION (min << max << name); |
36 struct Checker : public AttributeChecker |
51 struct Checker : public AttributeChecker |
37 { |
52 { |