53 Checker (uint64_t minValue, uint64_t maxValue, std::string name)
54 : m_minValue (minValue),
55 m_maxValue (maxValue),
64 return v->
Get () >= m_minValue && v->
Get () <= m_maxValue;
66 virtual std::string GetValueTypeName (
void)
const {
68 return "ns3::UintegerValue";
70 virtual bool HasUnderlyingTypeInformation (
void)
const {
74 virtual std::string GetUnderlyingTypeInformation (
void)
const {
76 std::ostringstream oss;
77 oss << m_name <<
" " << m_minValue <<
":" << m_maxValue;
82 return ns3::Create<UintegerValue> ();
88 if (src == 0 || dst == 0)
98 } *checker =
new Checker (
min,
max, name);
NS_FATAL_x macro definitions.
Ptr< const AttributeChecker > MakeUintegerChecker(uint64_t min, uint64_t max, std::string name)
Make an Uinteger attribute checker with embedded numeric type name.
Represent the type of an attribute.
Smart pointer class similar to boost::intrusive_ptr.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
Hold a value for an Attribute.
ns3::UintegerValue attribute value declarations and template implementations.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
Hold an unsigned integer type.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< T > Create(void)
Create class instances by constructors with varying numbers of arguments and return them by Ptr...
#define ATTRIBUTE_VALUE_IMPLEMENT_WITH_NAME(type, name)
Define the class methods belonging to the attribute value class nameValue of the underlying class typ...
Ptr< T > Copy(Ptr< T > object)
Return a deep copy of a Ptr.