Exemplo n.º 1
0
        public virtual void SetUp()
        {
            float maxF         = LightWeightLinkedSet.DefaultMaxLoadFactor;
            float minF         = LightWeightLinkedSet.DefautMinLoadFactor;
            int   initCapacity = LightWeightLinkedSet.MinimumCapacity;

            rand = new Random(Time.Now());
            list.Clear();
            for (int i = 0; i < Num; i++)
            {
                list.AddItem(rand.Next());
            }
            set = new LightWeightLinkedSet <int>(initCapacity, maxF, minF);
        }
Exemplo n.º 2
0
 internal LinkedSetIterator(LightWeightLinkedSet <T> _enclosing)
 {
     this._enclosing = _enclosing;
 }