Unnamed namespace. More...
const int8_t | UNIT_POWER [Time::LAST] = {17, 17, 17, 16, 15, 12, 9, 6, 3, 0} |
Scaling coefficients, exponents, and look up table for unit. More... | |
const int32_t | UNIT_COEFF [Time::LAST] = {315360, 864, 36, 6, 1, 1, 1, 1, 1, 1} |
Scaling coefficient, relative to smallest unit. More... | |
const long double * | UNIT_VALUE = InitUnitValue() |
Value of each unit, in terms of the smallest defined unit. More... | |
long double | Scale (Time::Unit u) |
Scale a unit to the smallest unit. More... | |
long double * | InitUnitValue () |
Initializer for UNIT_VALUE . More... | |
Unnamed namespace.
long double* ns3::anonymous_namespace{time.cc}::InitUnitValue | ( | ) |
Initializer for UNIT_VALUE
.
Definition at line 70 of file time.cc.
References ns3::Time::LAST, Scale(), and ns3::Time::Y.
long double ns3::anonymous_namespace{time.cc}::Scale | ( | Time::Unit | u | ) |
Scale a unit to the smallest unit.
u | The unit to scale |
Definition at line 60 of file time.cc.
References UNIT_COEFF, and UNIT_POWER.
Referenced by InitUnitValue().
const int32_t ns3::anonymous_namespace{time.cc}::UNIT_COEFF[Time::LAST] = {315360, 864, 36, 6, 1, 1, 1, 1, 1, 1} |
Scaling coefficient, relative to smallest unit.
Definition at line 52 of file time.cc.
Referenced by Scale(), and ns3::Time::SetResolution().
const int8_t ns3::anonymous_namespace{time.cc}::UNIT_POWER[Time::LAST] = {17, 17, 17, 16, 15, 12, 9, 6, 3, 0} |
Scaling coefficients, exponents, and look up table for unit.
Scaling exponent, relative to smallest unit.
Definition at line 50 of file time.cc.
Referenced by Scale(), and ns3::Time::SetResolution().
const long double* ns3::anonymous_namespace{time.cc}::UNIT_VALUE = InitUnitValue() |