31#ifndef G4DIMENSIONEDTYPE_HH
32#define G4DIMENSIONEDTYPE_HH
46template <
typename T,
typename ConversionErrorPolicy = G4ConversionFatalError>
85template <
typename T,
typename ConversionErrorPolicy>
92template <
typename T,
typename ConversionErrorPolicy>
102 fDimensionedValue = value*unitValue;
105template <
typename T,
typename ConversionErrorPolicy>
108template <
typename T,
typename ConversionErrorPolicy>
115template <
typename T,
typename ConversionErrorPolicy>
122template <
typename T,
typename ConversionErrorPolicy>
126 return fDimensionedValue;
129template <
typename T,
typename ConversionErrorPolicy>
133 return fDimensionedValue;
136template <
typename T,
typename ConversionErrorPolicy>
140 return fDimensionedValue == rhs.fDimensionedValue;
143template <
typename T,
typename ConversionErrorPolicy>
147 return fDimensionedValue != rhs.fDimensionedValue;
150template <
typename T,
typename ConversionErrorPolicy>
154 return fDimensionedValue < rhs.fDimensionedValue;
157template <
typename T,
typename ConversionErrorPolicy>
161 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)