swift
Static Public Member Functions | List of all members
swift::misc::physical_quantities::CMeasurementUnit::LinearConverter< Policy > Struct Template Reference

Concrete strategy pattern for converting unit with linear conversion. More...

Static Public Member Functions

static double toDefault (double value)
 convert from this unit to the default unit
 
static double fromDefault (double value)
 convert to this unit from the default unit
 

Detailed Description

template<class Policy>
struct swift::misc::physical_quantities::CMeasurementUnit::LinearConverter< Policy >

Concrete strategy pattern for converting unit with linear conversion.

Template Parameters
Policya policy class with static method factor() returning double

Definition at line 69 of file measurementunit.h.


The documentation for this struct was generated from the following file: