32 #ifndef G4DIMENSIONEDTYPE_HH
33 #define G4DIMENSIONEDTYPE_HH
37 #include "G4String.hh"
41 namespace G4DimensionedTypeUtils
47 template <
typename T,
typename ConversionErrorPolicy = G4ConversionFatalError>
74 bool operator < (const G4DimensionedType<T>& rhs)
const;
86 template <
typename T,
typename ConversionErrorPolicy>
93 template <
typename T,
typename ConversionErrorPolicy>
106 template <
typename T,
typename ConversionErrorPolicy>
109 template <
typename T,
typename ConversionErrorPolicy>
116 template <
typename T,
typename ConversionErrorPolicy>
123 template <
typename T,
typename ConversionErrorPolicy>
127 return fDimensionedValue;
130 template <
typename T,
typename ConversionErrorPolicy>
134 return fDimensionedValue;
137 template <
typename T,
typename ConversionErrorPolicy>
144 template <
typename T,
typename ConversionErrorPolicy>
151 template <
typename T,
typename ConversionErrorPolicy>
158 template <
typename T,
typename ConversionErrorPolicy>
165 template <
typename M>
166 std::ostream& operator << (std::ostream& os, const G4DimensionedType<M>& obj) {
167 os << obj.RawValue()<<
" "<<obj.Unit();
virtual ~G4DimensionedType()
bool operator<(const G4DimensionedType< T > &rhs) const
G4bool GetUnitValue(const G4String &unit, G4double &value)
const XML_Char int const XML_Char * value
T DimensionedValue() const
bool operator==(const G4DimensionedType< T > &rhs) const
bool operator!=(const G4DimensionedType< T > &rhs) const
bool operator>(const G4DimensionedType< T > &rhs) const