Esempio n. 1
0
        Wisdom In()
        {
            Wisdom ws = null;
            int    k;

            ifst >> k;
            ws = Make(k);
            if (ws)
            {
                ws.InData(ifst);
            }
            return(ws);
        }
Esempio n. 2
0
        static Wisdom Make(int key)
        {
            Wisdom        wisdom = null;
            WisdomFactory tmp    = top;

            while (tmp)
            {
                wisdom = tmp.Create(key);
                if (wisdom)
                {
                    return(wisdom);
                }
                tmp = tmp.next;
            }
        }
Esempio n. 3
0
        public static Wisdom Make(int key)
        {
            Wisdom        w   = null;
            WisdomFactory tmp = top;

            while (tmp != null)
            {
                w = tmp.Create(key);
                if (w != null)
                {
                    return(w);
                }
                tmp = tmp.next;
            }
            return(null);
        }
Esempio n. 4
0
        public void Add(Wisdom item)
        {
            var key = item.GetHash(items.Length);

            items[key].Nodes.Add(item);
        }