An immutable class which represents a value in a specific length unit. More...
#include "length.h"
Public Member Functions | |
Quantity (const Quantity &)=default | |
Copy Constructor. More... | |
Quantity (double value, Length::Unit unit) | |
Constructor. More... | |
Quantity (Quantity &&)=default | |
Move Constructor. More... | |
~Quantity ()=default | |
Destructor. More... | |
Quantity & | operator= (const Quantity &)=default |
Copy Assignment Operator. More... | |
Quantity & | operator= (Quantity &&)=default |
Move Assignment Operator. More... | |
Length::Unit | Unit () const |
The unit of the quantity. More... | |
double | Value () const |
The value of the quantity. More... | |
Private Attributes | |
Length::Unit | m_unit |
unit of length of the value More... | |
double | m_value |
Value of the length. More... | |
An immutable class which represents a value in a specific length unit.
|
inline |
|
default |
Copy Constructor.
|
default |
Move Constructor.
|
default |
Destructor.
|
inline |
The unit of the quantity.
Definition at line 320 of file length.h.
References m_unit.
Referenced by anonymous_namespace{length.cc}::Convert(), and ns3::Length::operator<<().
|
inline |
The value of the quantity.
Definition at line 310 of file length.h.
References m_value.
Referenced by anonymous_namespace{length.cc}::Convert(), ns3::Length::operator<<(), and LengthTestCase::TestConstructLengthFromQuantity().
|
private |
|
private |