Exemple #1
0
 void appendIfAbsent(ActiveList al) {
   if (_n + al._n > _a.length) growTo(2 * (_n + al._n));
   int n = al._n;
   for (int i = 0; i < n; ++i) {
     Sample s = al.get(i);
     if (s.absent) {
       _a[_n++] = s;
       s.absent = false;
     }
   }
 }
Exemple #2
0
 private void clearActivated(Sample s) {
   s.activated = 0;
 }
Exemple #3
0
 private void setActivated(Sample s) {
   s.activated = _activated;
 }
Exemple #4
0
 void append(Sample s) {
   s.activated = _activated;
   if (_n == _a.length) growTo(2 * _n);
   _a[_n++] = s;
 }