unitSet.H File Reference
Include dependency graph for unitSet.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  unitSet
 Unit conversion structure. Contains the associated dimensions and the multiplier with which to convert values. More...
 
struct  unitSet::makeStandardOp
 Functor to convert to standard. More...
 
struct  unitSet::makeUserOp
 Functor to convert to user. More...
 
struct  typeUnitsType< Type >
 Get the units type for a given type. This returns the unit set for. More...
 
struct  typeUnitsType< label >
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Functions

unitSet pow (const unitSet &, const scalar)
 
const unitSet & operator+ (const unitSet &, const unitSet &)
 
unitSet operator* (const unitSet &, const unitSet &)
 
unitSet operator/ (const unitSet &, const unitSet &)
 
Istream & operator>> (Istream &, unitSet &)
 
Ostream & operator<< (Ostream &, const unitSet &)
 
Ostream & operator<< (Ostream &, const InfoProxy< unitSet > &)
 
template<class Type , class Convert >
enableIfScalarCmptType< Type > convert (Type &t, const unitSet &units, const Convert &)
 Convert a primitive type. More...
 
template<class Type >
const typeUnitsType< Type >::type & typeUnits (const unitSet &)
 
template<class Type >
typeUnitsType< Type >::type typeUnits (const dimensionSet &)
 
template<>
const typeUnitsType< label >::type & typeUnits< label > (const unitSet &)
 
template<>
typeUnitsType< label >::type typeUnits< label > (const dimensionSet &)
 
template<class Type >
Type readAndConvert (Istream &, const unitSet &)
 Read a type which supports unit conversion. More...
 
template<class Type >
Type readAndConvert (Istream &, const dimensionSet &)
 Read a type which supports unit conversion. More...
 
template<class Type , class Units >
Type readAndConvert (Istream &, const Units &)
 Read a type which supports unit conversion. More...
 
template<class Type >
Type readAndConvert (Istream &, const nil &)
 Read a type which does not support unit conversion. More...
 
template<class Type >
enableIfScaleable< Type, Type > readAndMaybeConvert (Istream &)
 Read a type which may or may not support unit conversion. More...
 
template<class Type >
enableIfNotScaleable< Type, Type > readAndMaybeConvert (Istream &)
 Read a type which may or may not support unit conversion. More...
 
template<>
unitSet readAndMaybeConvert< unitSet > (Istream &)
 Read a unit set. More...
 
template<>
dimensionSet readAndMaybeConvert< dimensionSet > (Istream &)
 Read a dimension set. More...
 
template<class Type >
void writeEntry (Ostream &, const unitSet &, const Type &)
 Write a type with a given unit conversion. More...
 
template<class Type >
void writeEntry (Ostream &, const nil &, const Type &)
 Write a type without unit conversion. More...
 

Detailed Description

Original source file unitSet.H

Definition in file unitSet.H.