quantities v0.3.1 (2014-09-14T10:45:06Z)
Home
Dub
Repo
OpBinary
quantities
base
Undocumented in source.
package
template
OpBinary (
Dim
...
) {
package
static if
(
staticIndexOf!("/", Dim) >= 0
)
enum
op
;
alias
numerator
=
Dim
[
0
..
op
]
;
alias
denominator
=
Dim
[
op
+
1
..$]
;
alias
OpBinary
=
Sort
!(
RemoveNull
!(
Simplify
!(
TypeTuple
!(
numerator
,
Invert
!(
denominator
)))))
;
package
static if
(!(
staticIndexOf!("/", Dim) >= 0
))
static if
(
staticIndexOf!("%", Dim) >= 0
)
enum
op
;
alias
numerator
=
Dim
[
0
..
op
]
;
alias
denominator
=
Dim
[
op
+
1
..$]
;
alias
OpBinary
=
Sort
!(
RemoveNull
!(
Simplify
!(
TypeTuple
!(
numerator
,
Invert
!(
denominator
)))))
;
package
static if
(!(
staticIndexOf!("/", Dim) >= 0
))
static if
(!(
staticIndexOf!("%", Dim) >= 0
))
static if
(
staticIndexOf!("*", Dim) >= 0
)
enum
op
;
alias
OpBinary
=
Sort
!(
RemoveNull
!(
Simplify
!(
TypeTuple
!(
Dim
[
0
..
op
],
Dim
[
op
+
1
..$]))))
;
}
Members
Aliases
OpBinary
alias
OpBinary
=
Sort
!(
RemoveNull
!(
Simplify
!(
TypeTuple
!(
numerator
,
Invert
!(
denominator
)))))
Undocumented in source.
OpBinary
alias
OpBinary
=
Sort
!(
RemoveNull
!(
Simplify
!(
TypeTuple
!(
Dim
[
0
..
op
],
Dim
[
op
+
1
..$]))))
Undocumented in source.
OpBinary
alias
OpBinary
=
Sort
!(
RemoveNull
!(
Simplify
!(
TypeTuple
!(
numerator
,
Invert
!(
denominator
)))))
Undocumented in source.
denominator
alias
denominator
=
Dim
[
op
+
1
..$]
Undocumented in source.
denominator
alias
denominator
=
Dim
[
op
+
1
..$]
Undocumented in source.
numerator
alias
numerator
=
Dim
[
0
..
op
]
Undocumented in source.
numerator
alias
numerator
=
Dim
[
0
..
op
]
Undocumented in source.
Manifest constants
op
enum
op
;
Undocumented in source.
op
enum
op
;
Undocumented in source.
op
enum
op
;
Undocumented in source.
Meta
Source
See Implementation
quantities
base
classes
DimensionException
functions
dimstr
store
toAA
structs
Quantity
templates
AreConsistent
Filter
FilterOut
FilterPred
Invert
Is
IsDim
OpBinary
Pow
PowInverse
Reduce
RemoveNull
Simplify
Sort
Store
isNumberLike
isQuantity
prefix
unit