A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
Integer Attribute

AttributeValue implementation for Integer. More...

+ Collaboration diagram for Integer Attribute:

Files

file  integer.cc
 ns3::MakeIntegerChecker implementation.
 
file  integer.h
 ns3::IntegerValue attribute value declarations and template implementations.
 

Classes

class  IntegerChecker
 AttributeChecker implementation for IntegerValue. More...
 
class  ns3::IntegerValue
 Hold a signed integer type. More...
 

Functions

Ptr< const AttributeCheckerns3::internal::MakeIntegerChecker (int64_t min, int64_t max, std::string name)
 Make an Integer attribute checker with embedded numeric type name.
 

Detailed Description

AttributeValue implementation for Integer.

Function Documentation

◆ MakeIntegerChecker()

Ptr< const AttributeChecker > ns3::internal::MakeIntegerChecker ( int64_t  min,
int64_t  max,
std::string  name 
)

Make an Integer attribute checker with embedded numeric type name.

Parameters
[in]minThe minimum allowed value.
[in]maxThe maximum allowed value.
[in]nameThe original type name ("int8_t", "int16_t", etc.).
Returns
The AttributeChecker.

Definition at line 41 of file integer.cc.

References ns3::Copy(), ns3::Create(), ns3::IntegerValue::Get(), NS_LOG_FUNCTION, and NS_LOG_FUNCTION_NOARGS.

Referenced by ns3::MakeIntegerChecker(), ns3::MakeIntegerChecker(), and ns3::MakeIntegerChecker().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: