31 #ifndef G4DIMENSIONEDTYPE_HH
32 #define G4DIMENSIONEDTYPE_HH
36 #include "G4String.hh"
40 namespace G4DimensionedTypeUtils
46 template <
typename T,
typename ConversionErrorPolicy = G4ConversionFatalError>
73 bool operator < (const G4DimensionedType<T>& rhs)
const;
85 template <
typename T,
typename ConversionErrorPolicy>
92 template <
typename T,
typename ConversionErrorPolicy>
105 template <
typename T,
typename ConversionErrorPolicy>
108 template <
typename T,
typename ConversionErrorPolicy>
115 template <
typename T,
typename ConversionErrorPolicy>
122 template <
typename T,
typename ConversionErrorPolicy>
126 return fDimensionedValue;
129 template <
typename T,
typename ConversionErrorPolicy>
133 return fDimensionedValue;
136 template <
typename T,
typename ConversionErrorPolicy>
143 template <
typename T,
typename ConversionErrorPolicy>
150 template <
typename T,
typename ConversionErrorPolicy>
157 template <
typename T,
typename ConversionErrorPolicy>
164 template <
typename M>
165 std::ostream& operator << (std::ostream& os, const G4DimensionedType<M>& obj) {
166 os << obj.RawValue()<<
" "<<obj.Unit();