Esempio n. 1
0
        private static void   tstSimple()
        {
            long        i    = 0;
            Pile <long> test = new Pile <long>();

            test.Add(1);
            test.Add(2);
            test.Add(3);
            test.Del(2);
            ass(test.Len, 2, "tstSimple.0");
            ass(test[1], 1, "tstSimple.1");
            ass(test[2], 3, "tstSimple.2");
            test.Del(1);
            ass(test[1], 3, "tstSimple.3");
            ass(test.Len, 1, "tstSimple.4");
        }
Esempio n. 2
0
 public void subscribe(InxObserver listener)
 {
     if (lbMap.useReachNotify)
     {
         listeners.Add(listener);
     }
 }
Esempio n. 3
0
 public KeyPile <kTyp, iTyp> Add(kTyp key, iTyp more)
 {
     kim.Add(key); val.Add(more); return(this);
 }