An immutable class which represents a value in a specific length unit. More...
#include "length.h"
Collaboration diagram for ns3::Length::Quantity:Public Member Functions | |
| Quantity (const Quantity &)=default | |
| Copy Constructor. | |
| Quantity (double value, Length::Unit unit) | |
| Constructor. | |
| Quantity (Quantity &&)=default | |
| Move Constructor. | |
| ~Quantity ()=default | |
| Destructor. | |
| Quantity & | operator= (const Quantity &other)=default |
| Copy Assignment Operator. | |
| Quantity & | operator= (Quantity &&other)=default |
| Move Assignment Operator. | |
| Length::Unit | Unit () const |
| The unit of the quantity. | |
| double | Value () const |
| The value of the quantity. | |
Private Attributes | |
| Length::Unit | m_unit |
| unit of length of the value | |
| double | m_value |
| Value of the length. | |
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 330 of file length.h.
References m_unit.
Referenced by anonymous_namespace{length.cc}::Convert(), and ns3::operator<<().
Here is the caller graph for this function:
|
inline |
The value of the quantity.
Definition at line 320 of file length.h.
References m_value.
Referenced by anonymous_namespace{length.cc}::Convert(), ns3::operator<<(), and LengthTestCase::TestConstructLengthFromQuantity().
Here is the caller graph for this function:
|
private |
|
private |