32#ifndef G4DIMENSIONEDTYPE_HH
33#define G4DIMENSIONEDTYPE_HH
47template <
typename T,
typename ConversionErrorPolicy = G4ConversionFatalError>
86template <
typename T,
typename ConversionErrorPolicy>
93template <
typename T,
typename ConversionErrorPolicy>
103 fDimensionedValue = value*unitValue;
106template <
typename T,
typename ConversionErrorPolicy>
109template <
typename T,
typename ConversionErrorPolicy>
116template <
typename T,
typename ConversionErrorPolicy>
123template <
typename T,
typename ConversionErrorPolicy>
127 return fDimensionedValue;
130template <
typename T,
typename ConversionErrorPolicy>
134 return fDimensionedValue;
137template <
typename T,
typename ConversionErrorPolicy>
141 return fDimensionedValue == rhs.fDimensionedValue;
144template <
typename T,
typename ConversionErrorPolicy>
148 return fDimensionedValue != rhs.fDimensionedValue;
151template <
typename T,
typename ConversionErrorPolicy>
155 return fDimensionedValue < rhs.fDimensionedValue;
158template <
typename T,
typename ConversionErrorPolicy>
162 return fDimensionedValue > rhs.fDimensionedValue;
std::ostream & operator<<(std::ostream &os, const G4DimensionedType< M > &obj)
T DimensionedValue() const
bool operator>(const G4DimensionedType< T > &rhs) const
virtual ~G4DimensionedType()
bool operator==(const G4DimensionedType< T > &rhs) const
bool operator!=(const G4DimensionedType< T > &rhs) const
bool operator<(const G4DimensionedType< T > &rhs) const
G4bool GetUnitValue(const G4String &unit, G4double &value)