Management of lengths in real world units. More...
 Collaboration diagram for Length:
 Collaboration diagram for Length:| 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. | |
| Namespaces | |
| anonymous_namespace{length.cc} | |
| Unnamed namespace. | |
| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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.
References ns3::Length::GetDouble(), and NS_FATAL_ERROR.
Referenced by DivAndMod(), TimeSimpleTestCase::DoTimeOperations(), LengthTestCase::TestDivReturnsCorrectRemainder(), LengthTestCase::TestDivReturnsCorrectResult(), and LengthTestCase::TestDivReturnsZeroRemainder().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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.
References ns3::Length::GetDouble(), and NS_FATAL_ERROR.
Referenced by DivAndMod(), LengthTestCase::TestModReturnsNonZero(), and LengthTestCase::TestModReturnsZero().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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 409 of file length.cc.
References ns3::Length::GetDouble().
 Here is the call graph for this function:
 Here is the call graph for this function: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 453 of file length.cc.
References ns3::Length::GetDouble().
 Here is the call graph for this function:
 Here is the call graph for this function: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 | 
Definition at line 439 of file length.cc.
References ns3::Length::GetDouble().
 Here is the call graph for this function:
 Here is the call graph for this function: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 446 of file length.cc.
References ns3::Length::GetDouble().
 Here is the call graph for this function:
 Here is the call graph for this function: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 466 of file length.cc.
References NS_FATAL_ERROR.
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 477 of file length.cc.
References ns3::Length::GetDouble().
 Here is the call graph for this function:
 Here is the call graph for this function: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 415 of file length.cc.
References ns3::Length::GetDouble().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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 675 of file length.cc.
References ns3::Length::As().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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 683 of file length.cc.
References ns3::ToSymbol(), ns3::Length::Quantity::Unit(), and ns3::Length::Quantity::Value().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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 691 of file length.cc.
References ns3::ToName().
 Here is the call graph for this function:
 Here is the call graph for this function: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 421 of file length.cc.
References ns3::Length::GetDouble().
 Here is the call graph for this function:
 Here is the call graph for this function: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 403 of file length.cc.
References ns3::Length::GetDouble().
 Here is the call graph for this function:
 Here is the call graph for this function: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 427 of file length.cc.
References ns3::Length::GetDouble().
 Here is the call graph for this function:
 Here is the call graph for this function: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 433 of file length.cc.
References ns3::Length::GetDouble().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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 750 of file length.cc.
References NS_LOG_LOGIC, ns3::ParseLengthString(), and ns3::Length::swap().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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::operator>>().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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.
References NS_FATAL_ERROR.
Referenced by ns3::operator<<().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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.
References NS_FATAL_ERROR.
Referenced by ns3::operator<<().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function: