ns3::Length implementation More...

`#include "length.h"`

`#include "ns3/log.h"`

`#include <algorithm>`

`#include <array>`

`#include <cctype>`

`#include <cmath>`

`#include <functional>`

`#include <limits>`

`#include <map>`

`#include <ratio>`

`#include <sstream>`

`#include <string>`

`#include <tuple>`

`#include <type_traits>`

`#include <unordered_map>`

`#include <vector>`

Include dependency graph for length.cc:

Go to the source code of this file.

## Classes | |

class | anonymous_namespace{length.cc}::EnumHash |

Functor for hashing Length::Unit values. More... | |

## Namespaces | |

anonymous_namespace{length.cc} | |

Unnamed namespace. | |

ns3 | |

Every class exported by the ns3 library is enclosed in the ns3 namespace. | |

## Functions | |

double | anonymous_namespace{length.cc}::Convert (const ns3::Length::Quantity &from, ns3::Length::Unit toUnit) |

Convert a Length::Quantity to the equivalent value in another unit. More... | |

double | anonymous_namespace{length.cc}::Convert (double value, ns3::Length::Unit fromUnit, ns3::Length::Unit toUnit) |

Convert a value in one unit to the equivalent value in another unit. More... | |

double | anonymous_namespace{length.cc}::FootToMeter (double value) |

Convert a value in feet to the equivalent value in meters. More... | |

Ptr< const AttributeChecker > | ns3::MakeLengthChecker (void) |

double | anonymous_namespace{length.cc}::MeterToFoot (double value) |

Convert a value in meters to the equivalent value in feet. More... | |

template<class R > | |

double | anonymous_namespace{length.cc}::MeterToUS (double value) |

Convert a value from meters to a US Customary unit (inches, feet, yards etc.) More... | |

template<class R > | |

double | anonymous_namespace{length.cc}::ScaleValue (double value) |

Helper function to scale an input value by a given ratio. More... | |

template<class R > | |

double | anonymous_namespace{length.cc}::USToMeter (double value) |

Convert a value from a US Customary unit (inches, feet, yards etc.) to meters. 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... | |

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::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... | |

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... | |

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::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::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::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::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 | 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::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... | |

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::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... | |

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, 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, 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... | |

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... | |

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... | |

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... | |

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... | |

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... | |

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::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::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... | |

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... | |

ns3::Length implementation

Definition in file length.cc.