Declaration of ns3::Length class. More...
#include "attribute-helper.h"
#include "attribute.h"
#include <istream>
#include <limits>
#include <optional>
#include <ostream>
#include <string>
Go to the source code of this file.
Classes | |
class | ns3::Length |
Represents a length in meters. More... | |
class | ns3::LengthChecker |
class | ns3::LengthValue |
class | ns3::Length::Quantity |
An immutable class which represents a value in a specific length unit. More... | |
Namespaces | |
ns3 | |
Every class exported by the ns3 library is enclosed in the ns3 namespace. | |
Functions | |
int64_t | ns3::Div (const Length &numerator, const Length &denominator, Length *remainder=nullptr) |
Calculate how many times numerator can be split into denominator sized pieces. More... | |
std::optional< Length::Unit > | ns3::FromString (std::string unitString) |
Find the equivalent Length::Unit for a unit string. More... | |
template<typename T1 > | |
Ptr< const AttributeAccessor > | ns3::MakeLengthAccessor (T1 a1) |
template<typename T1 , typename T2 > | |
Ptr< const AttributeAccessor > | ns3::MakeLengthAccessor (T1 a1, T2 a2) |
Ptr< const AttributeChecker > | ns3::MakeLengthChecker () |
Length | ns3::Mod (const Length &numerator, const Length &denominator) |
Calculate the amount remaining after dividing two lengths. More... | |
bool | ns3::operator!= (const Length &left, const Length &right) |
Compare two length objects for inequality. More... | |
Length | ns3::operator* (const Length &l, double scalar) |
Multiply a length value by a scalar. More... | |
Length | ns3::operator* (double scalar, const Length &l) |
Multiply a length value by a scalar. More... | |
Length | ns3::operator+ (const Length &left, const Length &right) |
Add two length values together. More... | |
Length | ns3::operator- (const Length &left, const Length &right) |
Subtract two length values. More... | |
Length | ns3::operator/ (const Length &left, double scalar) |
Divide a length value by a scalar. More... | |
double | ns3::operator/ (const Length &numerator, const Length &denominator) |
Divide a length value by another length value. More... | |
bool | ns3::operator< (const Length &left, const Length &right) |
Check if left has a value less than right . More... | |
std::ostream & | ns3::operator<< (std::ostream &stream, const Length &l) |
Write a length value to an output stream. More... | |
std::ostream & | ns3::operator<< (std::ostream &stream, const Length::Quantity &q) |
Write a Quantity to an output stream. More... | |
std::ostream & | ns3::operator<< (std::ostream &stream, Length::Unit unit) |
Write a Length::Unit to an output stream. More... | |
bool | ns3::operator<= (const Length &left, const Length &right) |
Check if left has a value less than or equal to right . More... | |
bool | ns3::operator== (const Length &left, const Length &right) |
Compare two length objects for equality. More... | |
bool | ns3::operator> (const Length &left, const Length &right) |
Check if left has a value greater than right . More... | |
bool | ns3::operator>= (const Length &left, const Length &right) |
Check if left has a value greater than or equal to right . More... | |
std::istream & | ns3::operator>> (std::istream &stream, Length &l) |
Read a length value from an input stream. More... | |
std::string | ns3::ToName (Length::Unit unit, bool plural=false) |
Return the name of the supplied unit. More... | |
std::string | ns3::ToSymbol (Length::Unit unit) |
Return the symbol of the supplied unit. More... | |
Length | ns3::CentiMeters (double value) |
Construct a length from a value in the indicated unit. More... | |
Length | ns3::Feet (double value) |
Construct a length from a value in the indicated unit. More... | |
Length | ns3::Inches (double value) |
Construct a length from a value in the indicated unit. More... | |
Length | ns3::KiloMeters (double value) |
Construct a length from a value in the indicated unit. More... | |
Length | ns3::Meters (double value) |
Construct a length from a value in the indicated unit. More... | |
Length | ns3::MicroMeters (double value) |
Construct a length from a value in the indicated unit. More... | |
Length | ns3::Miles (double value) |
Construct a length from a value in the indicated unit. More... | |
Length | ns3::MilliMeters (double value) |
Construct a length from a value in the indicated unit. More... | |
Length | ns3::NanoMeters (double value) |
Construct a length from a value in the indicated unit. More... | |
Length | ns3::NauticalMiles (double value) |
Construct a length from a value in the indicated unit. More... | |
Length | ns3::Yards (double value) |
Construct a length from a value in the indicated unit. More... | |
Declaration of ns3::Length class.
Definition in file length.h.