58 return dimensions_.dimensionless();
64 return multiplier_ == 0;
70 return multiplier_ == -1;
76 return multiplier_ == 1 ||
any() ||
none();
82 inline Foam::scalar Foam::unitSet::operator[]
87 return dimensions_[
type];
91 inline Foam::scalar Foam::unitSet::operator[]
96 return exponents_[
static_cast<int>(
type)];
Dimension set for the base types.
dimensionType
Define an enumeration for the names of the dimension exponents.
Unit conversion structure. Contains the associated dimensions and the multiplier with which to conver...
static unitSet newAny()
Return a new "any" unit set.
bool none() const
Return whether this is the "none" unit. I.e., the case where unit.
const dimensionSet & dimensions() const
Access the dimensions.
static unitSet newNone()
Return a new "none" unit set.
bool standard() const
Return whether this unit is standard. I.e., is its multiplier one?
static unitSet newUnitless()
Return a new "unitless" unit set.
unitSet(const dimensionSet &, const scalar fraction, const scalar angle, const scalar multiplier)
Construct from components.
bool dimensionless() const
Return true if it is dimensionless.
dimlessUnitType
Define an enumeration for the names of the dimensionless unit.
bool any() const
Return whether this is the "any" unit. I.e., the case where.
bool any(const boolList &l)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.