A Discrete-Event Network Simulator
API
length-example.cc File Reference

Demonstrates usage of the ns3::Length class. More...

#include "ns3/core-module.h"
#include "ns3/length.h"
#include <iostream>
+ Include dependency graph for length-example.cc:

Go to the source code of this file.

Typedefs

using Unit = Length::Unit
 

Functions

void ArithmeticOperators ()
 
void Constructors ()
 
void Conversions ()
 
void DivAndMod ()
 
void EqualityOperators ()
 

Detailed Description

Demonstrates usage of the ns3::Length class.

Definition in file length-example.cc.

Typedef Documentation

◆ Unit

using Unit = Length::Unit

Definition at line 34 of file length-example.cc.

Function Documentation

◆ ArithmeticOperators()

void ArithmeticOperators ( )

Definition at line 69 of file length-example.cc.

References ns3::Meters().

+ Here is the call graph for this function:

◆ Constructors()

void Constructors ( )

Definition at line 36 of file length-example.cc.

◆ Conversions()

void Conversions ( )

Definition at line 55 of file length-example.cc.

References ns3::Length::As().

+ Here is the call graph for this function:

◆ DivAndMod()

void DivAndMod ( )

Definition at line 122 of file length-example.cc.

References ns3::Length::As(), ns3::Div(), ns3::Feet(), and ns3::Mod().

+ Here is the call graph for this function:

◆ EqualityOperators()

void EqualityOperators ( )

Definition at line 92 of file length-example.cc.

References ns3::Meters().

+ Here is the call graph for this function: