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 &other)=default |
Copy Assignment Operator. More... | |
Quantity & | operator= (Quantity &&other)=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.
Copy Assignment Operator.
[in] | other | The source to copy from. |
Move Assignment Operator.
[in] | other | The source to move from. |
|
inline |
The unit of the quantity.
Definition at line 329 of file length.h.
References m_unit.
Referenced by anonymous_namespace{length.cc}::Convert(), and ns3::operator<<().
|
inline |
The value of the quantity.
Definition at line 319 of file length.h.
References m_value.
Referenced by anonymous_namespace{length.cc}::Convert(), ns3::operator<<(), and LengthTestCase::TestConstructLengthFromQuantity().
|
private |
|
private |