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. | |
const int32_t | UNIT_COEFF [Time::LAST] = {315360, 864, 36, 6, 1, 1, 1, 1, 1, 1} |
Scaling coefficient, relative to smallest unit. | |
const long double * | UNIT_VALUE = InitUnitValue() |
Value of each unit, in terms of the smallest defined unit. | |
long double | Scale (Time::Unit u) |
Scale a unit to the smallest unit. | |
long double * | InitUnitValue () |
Initializer for UNIT_VALUE . | |
Unnamed namespace.
long double * ns3::anonymous_namespace{time.cc}::InitUnitValue | ( | ) |
Initializer for UNIT_VALUE
.
Definition at line 59 of file time.cc.
References InitUnitValue(), ns3::Time::LAST, Scale(), and ns3::Time::Y.
Referenced by InitUnitValue().
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 49 of file time.cc.
References Scale(), UNIT_COEFF, and UNIT_POWER.
Referenced by InitUnitValue(), and Scale().
const int32_t ns3::anonymous_namespace{time.cc}::UNIT_COEFF[Time::LAST] = {315360, 864, 36, 6, 1, 1, 1, 1, 1, 1} |
const int8_t ns3::anonymous_namespace{time.cc}::UNIT_POWER[Time::LAST] = {17, 17, 17, 16, 15, 12, 9, 6, 3, 0} |
const long double* ns3::anonymous_namespace{time.cc}::UNIT_VALUE = InitUnitValue() |