54 IntegerChecker (int64_t minValue, int64_t maxValue, std::string name)
55 : m_minValue (minValue),
56 m_maxValue (maxValue),
65 return v->
Get () >= m_minValue && v->
Get () <= m_maxValue;
67 virtual std::string GetValueTypeName (
void)
const {
69 return "ns3::IntegerValue";
71 virtual bool HasUnderlyingTypeInformation (
void)
const {
75 virtual std::string GetUnderlyingTypeInformation (
void)
const {
77 std::ostringstream oss;
78 oss << m_name <<
" " << m_minValue <<
":" << m_maxValue;
83 return ns3::Create<IntegerValue> ();
89 if (source == 0 || destination == 0)
93 *destination = *source;
NS_FATAL_x macro definitions.
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.
Hold a signed integer type.
#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.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeChecker > MakeIntegerChecker(int64_t min, int64_t max, std::string name)
Make an Integer attribute checker with embedded numeric type name.
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...
ns3::IntegerValue attribute value declarations and template implementations.
AttributeChecker implementation for IntegerValue.
Ptr< T > Copy(Ptr< T > object)
Return a deep copy of a Ptr.