chimpfella ~master (2022-01-20T08:09:05.102465)
Dub
Repo
FunctionBenchmark
kernels
@
nogc
@
safe
struct
FunctionBenchmark (
string
name
alias
genIndependantVariable
alias
independantToData
=
void
)
if
(
!
is
(
genIndependantVariable
==
void
) &&
isValidIndependantRange
!
genIndependantVariable
) {
static if
(
!is(independantToData == void)
)
static if
(
isInstanceOf!(ForwardTemplate, independantToData)
)
enum
forward
;
static if
(
!is(independantToData == void)
)
static if
(!(
isInstanceOf!(ForwardTemplate, independantToData)
))
enum
forward
;
alias
elemT
=
ElementType
!(
typeof
(
genIndependantVariable
()))
;
alias
elemT
=
ElementType
!(
typeof
(
genIndependantVariable
))
;
alias
forceEval
=
elemT
;
alias
finalFunc
=
independantToData
!
forceEval
;
alias
finalFunc
=
independantToData
;
static if
(
!is(independantToData == void)
)
static if
(!(
isInstanceOf!(ForwardTemplate, independantToData)
))
static if
(
arity!finalFunc
)
enum
compiles
;
immutable
string
benchmarkName
;
alias
genIndSet
=
genIndependantVariable
;
alias
genData
=
independantToData
;
const
Measurements
[]
measurementList
;
this
(Measurements[] theList);
}
Constructors
this
this
(Measurements[] theList)
Undocumented in source.
Members
Aliases
elemT
alias
elemT
=
ElementType
!(
typeof
(
genIndependantVariable
()))
Undocumented in source.
elemT
alias
elemT
=
ElementType
!(
typeof
(
genIndependantVariable
))
Undocumented in source.
finalFunc
alias
finalFunc
=
independantToData
!
forceEval
Undocumented in source.
finalFunc
alias
finalFunc
=
independantToData
Undocumented in source.
forceEval
alias
forceEval
=
elemT
Undocumented in source.
genData
alias
genData
=
independantToData
Undocumented in source.
genIndSet
alias
genIndSet
=
genIndependantVariable
Undocumented in source.
Manifest constants
compiles
enum
compiles
;
Undocumented in source.
forward
enum
forward
;
Undocumented in source.
forward
enum
forward
;
Undocumented in source.
Variables
benchmarkName
string
benchmarkName
;
Template parameter repeated as a struct field to simplify code elsewhere.
measurementList
Measurements
[]
measurementList
;
Meta
Source
See Implementation
kernels
enums
isValidIndependantRange
structs
ForwardTemplate
FunctionBenchmark
TemplateBenchmark