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

AttributeValue implementation for Double. More...

+ Collaboration diagram for Double Attribute:

Files

file  double.cc
 ns3::DoubleValue attribute value implementation.
 
file  double.h
 ns3::DoubleValue attribute value declarations and template implementations.
 

Classes

class  DoubleChecker
 AttributeChecker implementation for DoubleValue. More...
 
class  ns3::DoubleValue
 This class can be used to hold variables of floating point type such as 'double' or 'float'. More...
 

Functions

Ptr< const AttributeCheckerns3::internal::MakeDoubleChecker (double min, double max, std::string name)
 Make a Double attribute checker with embedded numeric type name.
 

Detailed Description

AttributeValue implementation for Double.

Function Documentation

◆ MakeDoubleChecker()

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

Make a Double attribute checker with embedded numeric type name.

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

Definition at line 42 of file double.cc.

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

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

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