You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This How-To builds on the results of the example sections.
11
11
12
12
# ## ProcessResultCache
13
-
# The caching mechanism is based on the `ProcessResultCache` type. This type wraps around a different `ÀbstractImageReconstructionParameter` and caches the result of a processing step.
13
+
# The caching mechanism is based on the `ProcessResultCache` type. This type wraps around a different `AbstractImageReconstructionParameter` and caches the result of a processing step.
14
14
# Such a `process`ing step which offer functionality to other `process` steps is a `AbstractUtilityReconstructionParameter`. These utility steps should return the same result as if the inner step was called directly.
15
15
16
16
# The cache itself is connected to a `RecoPlan` and any instances build from the same plan instance share this cache and can reuse the result of the processing step.
Abstract type that offer utility functions for a given reconstruction parameter and its associated `process` steps. Utility `process` steps should return the same result as `T` for the same inputs.
22
22
"""
23
-
abstract type AbstractUtilityReconstructionParameters{T <:AbstractImageReconstructionParameters} end
23
+
abstract type AbstractUtilityReconstructionParameters{T <:AbstractImageReconstructionParameters} <:AbstractImageReconstructionParametersend
24
24
25
25
export put!, take!
26
26
"""
@@ -122,4 +122,10 @@ export parameter
122
122
123
123
Return the parameters of the algorithm `algo`.
124
124
"""
125
-
parameter(algo::AbstractImageReconstructionAlgorithm) =error("$(typeof(algo)) must implement parameter")
125
+
parameter(algo::AbstractImageReconstructionAlgorithm) =error("$(typeof(algo)) must implement `parameter`")
Copy file name to clipboardExpand all lines: src/RecoPlans/Cache.jl
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,18 @@ export ProcessResultCache
5
5
Cache of size `maxsize` for the result of `process` methods. The cache is based on the `hash` of the inputs of the `process` function. Cache is shared between all algorithms constructed from the same plan.
6
6
The cache is transparent for properties of the underlying parameter. Cache can be invalidated by calling `empty!` on the cache.
0 commit comments