Management of lengths in real world units. More...
Files | |
file | length-example.cc |
Demonstrates usage of the ns3::Length class. | |
file | length-test-suite.cc |
Length class test suite. | |
file | length.cc |
ns3::Length implementation | |
file | length.h |
Declaration of ns3::Length class. | |
Classes | |
class | ns3::Length |
Represents a length in meters. More... | |
bool | ns3::operator== (const Length &left, const Length &right) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
bool | ns3::operator!= (const Length &left, const Length &right) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
bool | ns3::operator< (const Length &left, const Length &right) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
bool | ns3::operator<= (const Length &left, const Length &right) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
bool | ns3::operator> (const Length &left, const Length &right) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
bool | ns3::operator>= (const Length &left, const Length &right) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::operator+ (const Length &left, const Length &right) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::operator- (const Length &left, const Length &right) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::operator* (const Length &left, double scalar) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::operator* (double scalar, const Length &right) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::operator/ (const Length &left, double scalar) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
double | ns3::operator/ (const Length &numerator, const Length &denominator) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
int64_t | ns3::Div (const Length &numerator, const Length &denominator, Length *remainder) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::Mod (const Length &numerator, const Length &denominator) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
std::string | ns3::ToSymbol (Length::Unit unit) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
std::string | ns3::ToName (Length::Unit unit, bool plural) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
std::tuple< bool, Length::Unit > | ns3::FromString (std::string unitString) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
std::ostream & | ns3::operator<< (std::ostream &stream, const Length &l) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
std::ostream & | ns3::operator<< (std::ostream &stream, const Length::Quantity &q) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
std::ostream & | ns3::operator<< (std::ostream &stream, Length::Unit unit) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
std::tuple< bool, double, std::string > | ns3::ParseLengthString (const std::string &input) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
std::istream & | ns3::operator>> (std::istream &stream, Length &l) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::NanoMeters (double value) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::MicroMeters (double value) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::MilliMeters (double value) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::CentiMeters (double value) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::Meters (double value) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::KiloMeters (double value) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::NauticalMiles (double value) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::Inches (double value) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::Feet (double value) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::Yards (double value) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | ns3::Miles (double value) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations. More... | |
Length | NanoMeters (double value) |
Construct a Length from nanometers. More... | |
Length | MicroMeters (double value) |
Construct a Length from micrometers. More... | |
Length | MilliMeters (double value) |
Construct a Length from millimeters. More... | |
Length | CentiMeters (double value) |
Construct a Length from centimeters. More... | |
Length | Meters (double value) |
Construct a Length from meters. More... | |
Length | KiloMeters (double value) |
Construct a Length from kilometers. More... | |
Length | NauticalMiles (double value) |
Construct a Length from nautical miles. More... | |
Length | Inches (double value) |
Construct a Length from inches. More... | |
Length | Feet (double value) |
Construct a Length from feet. More... | |
Length | Yards (double value) |
Construct a Length from yards. More... | |
Length | Miles (double value) |
Construct a Length from miles. More... | |
Management of lengths in real world units.
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 814 of file length.cc.
Referenced by LengthTestCase::TestBuilderFreeFunctions().
|
related |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 488 of file length.cc.
Referenced by DivAndMod(), TimeSimpleTestCase::DoTimeOperations(), LengthTestCase::TestDivReturnsCorrectRemainder(), LengthTestCase::TestDivReturnsCorrectResult(), and LengthTestCase::TestDivReturnsZeroRemainder().
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 844 of file length.cc.
Referenced by DivAndMod(), and LengthTestCase::TestBuilderFreeFunctions().
|
related |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 838 of file length.cc.
Referenced by LengthTestCase::TestBuilderFreeFunctions().
|
related |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 826 of file length.cc.
Referenced by LengthValueTestCase::TestAttributeConstructor(), LengthValueTestCase::TestAttributeDeserialization(), LengthValueTestCase::TestAttributeSerialization(), and LengthTestCase::TestBuilderFreeFunctions().
|
related |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 820 of file length.cc.
Referenced by ArithmeticOperators(), EqualityOperators(), and LengthTestCase::TestBuilderFreeFunctions().
|
related |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 802 of file length.cc.
Referenced by LengthTestCase::TestBuilderFreeFunctions().
|
related |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 856 of file length.cc.
Referenced by LengthTestCase::TestBuilderFreeFunctions().
|
related |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 808 of file length.cc.
Referenced by LengthTestCase::TestBuilderFreeFunctions().
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 507 of file length.cc.
Referenced by DivAndMod(), LengthTestCase::TestModReturnsNonZero(), and LengthTestCase::TestModReturnsZero().
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 796 of file length.cc.
Referenced by LengthTestCase::TestBuilderFreeFunctions().
|
related |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 832 of file length.cc.
Referenced by LengthTestCase::TestBuilderFreeFunctions().
|
related |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
std::tuple<bool, double, std::string> ns3::ParseLengthString | ( | const std::string & | input | ) |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 715 of file length.cc.
References NS_LOG_ERROR, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
Referenced by ns3::Length::operator>>().
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 550 of file length.cc.
Referenced by ns3::Length::operator<<().
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 520 of file length.cc.
Referenced by ns3::Length::operator<<().
|
related |
This function provides a string parsing method that does not rely on istream, which has been found to have different behaviors in different implementations.
The input string can either contain a double (for example, "5.5") or a double and a string with no space between them (for example, "5.5m")
input | The input string |
Definition at line 850 of file length.cc.
Referenced by LengthTestCase::TestBuilderFreeFunctions().