Repository navigation
Expand file tree
/
Copy pathConditionDescriptorOnDemandCache.m
More file actions
55 lines (47 loc) · 1.63 KB
/
Copy pathConditionDescriptorOnDemandCache.m
File metadata and controls
55 lines (47 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
classdef ConditionDescriptorOnDemandCache < handle & matlab.mixin.Copyable
% This is a handle class used by condition descriptor for caching
% compute-on-demand property values. Value classes can compute
% properties on the fly in a property get method, but they can't store them
% for future quick recall. This class handles that, and making copies of it
% before modification alleviates any dependency between separate value
% instances.
properties(Transient)
conditions
conditionsAsStrings
conditionsAxisAttributesOnly
names
namesShort
namesMultiline
appearances
attributeValueLists
attributeValueListsAsStrings
axisValueLists
axisValueListsAsStrings
axisValueListsAsStringsShort
end
methods
function flush(c)
c.conditions = [];
c.conditionsAsStrings = [];
c.conditionsAxisAttributesOnly = [];
c.flushNames();
c.flushAppearanceInfo();
c.attributeValueLists = [];
c.attributeValueListsAsStrings = [];
c.axisValueLists = [];
c.axisValueListsAsStrings = [];
c.axisValueListsAsStringsShort = [];
end
function flushNames(c)
c.names = [];
c.namesShort = [];
c.namesMultiline = [];
c.attributeValueListsAsStrings = [];
c.axisValueListsAsStrings = [];
c.axisValueListsAsStringsShort = [];
end
function flushAppearanceInfo(c)
c.appearances = [];
end
end
end