13 writes to _count
PresentationCore (13)
System\Windows\Media\Animation\TimeIntervalCollection.cs (13)
109
_count
= 0;
141
_count
= 1;
184
_count
= 1;
211
_count
= 2;
231
_count
= 0;
1255
projection.
_count
++;
1268
projection.
_count
++;
1286
projection.
_count
++;
1507
_count
= 2;
1571
_count
--;
1592
_count
++;
1620
_count
= 2;
1748
_count
+= netIncreaseInNodes; // Update the array size
48 references to _count
PresentationCore (48)
System\Windows\Media\Animation\TimeIntervalCollection.cs (48)
188
Debug.Assert(
_count
== 0); // The boolean constructor already did the job for us
241
return (
_count
< 2) || (
_count
== 2 && _nodeIsInterval[0]);
250
Debug.Assert(
_count
> 0);
272
if (
_count
< 2 || slipTime > _nodeTime[1] - _nodeTime[0])
298
Debug.Assert(0 <
_count
&&
_count
<= 2);
300
if (
_count
== 1)
901
while (_current <
_count
)
985
if (
_count
< 2 // If we have 0-1 real points, no intersection with multiple periods is possible
1004
TimeSpan lastNodeTime = _nodeTime[
_count
- 1];
1037
Debug.Assert(!_nodeIsInterval[
_count
- 1]); // We should not have an infinite domain set
1160
Debug.Assert(_nodeTime[
_count
- 1] >= beginTime); // Our last node must come at least at begin time (since we must intersect the active period)
1163
Debug.Assert(!_nodeIsInterval[
_count
- 1]); // We should not have an infinite domain set
1173
&& (_nodeTime[
_count
- 1] > endTime.Value + fillDuration.TimeSpan // ...we intersect space after endTime+fill, or...
1174
|| (_nodeTime[
_count
- 1] == endTime.Value + fillDuration.TimeSpan // ...as we fall right onto the end of fill zone...
1175
&& _nodeIsPoint[
_count
- 1] && (endTime > beginTime || fillDuration.TimeSpan > TimeSpan.Zero)))); // ...we may have a point intersection with the stopped zone
1264
while(_current <
_count
&& (!endTime.HasValue || CurrentNodeTime < endTime)) // Copy the main set of segments, transforming them
1278
if (_current <
_count
// We have an interval reaching beyond the active zone, clip that interval
1333
} while (!quitFlag && (_current <
_count
));
1565
for (int n = index; n + 1 <
_count
; n++) // Shift over the contents
1580
EnsureAllocatedCapacity(
_count
+ 1);
1582
for (int n =
_count
- 1; n > index; n--) // Shift over the contents
1725
Debug.Assert(
_count
+ netIncreaseInNodes >= 2); // We should never shrink past size 2
1729
EnsureAllocatedCapacity(
_count
+ netIncreaseInNodes); // Make sure we have enough space allocated
1730
for (int n =
_count
- 1; n > lastNodeToDelete; n--)
1740
for (int n = lastNodeToDelete + 1; n <
_count
; n++)
1791
for (int n = 0; n <
_count
; n++)
1829
while (_current <
_count
&& CurrentNodeTime < accelEnd)
1837
while (_current <
_count
&& CurrentNodeTime <= decelStart) // We bias the edge points towards the simpler linear computation, which yields the same result
1845
while (_current <
_count
)
2123
if (
_count
== 0 || time < _nodeTime[0])
2129
Debug.Assert(
_count
> 0); // Count cannot be negative
2133
int right =
_count
- 1;
2155
Debug.Assert(right ==
_count
- 1);
2165
return (
_count
== 0);
2173
return (
_count
== 0 && !_containsNullPoint);
2185
Debug.Assert(_current <=
_count
);
2192
return (_current + 1 ==
_count
);
2200
Debug.Assert(_current <
_count
);
2205
Debug.Assert(_current <
_count
);
2214
Debug.Assert(_current <
_count
);
2219
Debug.Assert(_current <
_count
);
2228
Debug.Assert(_current <
_count
);
2233
Debug.Assert(_current <
_count
);
2242
Debug.Assert(_current + 1 <
_count
);
2251
Debug.Assert(_current + 1 <
_count
);
2260
Debug.Assert(_current + 1 <
_count
);