A quantity point
Synopsis
Declared in <mp‐units/framework/quantity_point.h>
template<
Reference auto R,
PointOriginFor<get_quantity_spec®> auto PO = default_point_origin®,
RepresentationOf<get_quantity_spec®> Rep = double>
class quantity_point
: public /* implementation-defined */
Description
An absolute quantity measured from an origin.
Base Classes
Name |
Description |
|
Type Aliases
Name |
Description |
The |
|
The type used to represent the numerical value of the quantity point. |
Member Functions
Name |
Description |
|
Constructors |
|
|
|
Deprecated. Returns the numerical value of this quantity point on the scale of another unit, truncating if inexact. |
|
|
|
|
Increment operators |
|
Adds a quantity to the underlying quantity from the origin and assigns the result to |
|
Decrement operators |
|
Subtracts a quantity from the underlying quantity from the origin and assigns the result to |
|
|
|
|
|
Returns the quantity separating this quantity point from the zero of its default point origin. |
|
|
|
Conversion operators |
Static Member Functions
Name |
Description |
Returns the largest representable quantity point, honoring the point origin's bounds policy. |
|
Returns the smallest representable quantity point, honoring the point origin's bounds policy. |
|
Returns a quantity point at |
Data Members
Name |
Description |
|
needs to be public for a structural type |
Static Data Members
Name |
Description |
The absolute point origin underlying |
|
The quantity character (tensor order and numeric field) extracted from |
|
The dimension extracted from |
|
The point origin of this quantity point, as provided via the |
|
The quantity specification extracted from |
|
The reference of the quantity point, as provided via the |
|
The unit extracted from |
Deduction Guides
Name |
Description |
|
Deduces a |
Deduces a |
|
Deduces a |
Non-Member Functions
Name |
Description |
Constructs a |
|
Computes the smallest quantity point with integer representation and unit type To with its number not less than qp |
|
Computes the largest quantity point with integer representation and unit type To with its number not greater than qp |
|
Determines if a quantity point is finite. |
|
Determines if a quantity point is infinite. |
|
Determines if a quantity point is a nan. |
|
Linear interpolation or extrapolation |
|
Computes the midpoint of two points |
|
Constructs a |
|
Computes the nearest quantity point with integer representation and unit type |
|
Explicit cast of a quantity point's representation type |
Template Parameters
Name |
Description |
R |
a reference of the quantity point providing all information about quantity properties |
PO |
a type that represents the origin point from which the quantity point is measured from |
Rep |
a type to be used to represent values of a quantity point |
Created with MrDocs