Beispiel #1
0
        public Leaf Insert(ulong hashid, IObjectBox obj)
        {
            Leaf leaf = new Leaf(this, obj);


            this.leaves.Add(hashid, leaf);

            Node root = this.root;

            this.root = SubtreeInsert(root, leaf);


            //this.root = cp.subtreeInsert(root, leaf, this);

            leaf.STAMP = GetStamp();
            leaf.AddPairs(this);             //.AddPairs(this);
            IncrementStamp();
            return(leaf);
        }
Beispiel #2
0
        public Leaf Insert(ulong hashid, IObjectBox obj)
        {
            Leaf leaf = new Leaf(this, obj);

            this.leaves.Add(hashid, leaf);

            Node root = this.root;

            this.root = SubtreeInsert(root, leaf);

            //this.root = cp.subtreeInsert(root, leaf, this);

            leaf.STAMP = GetStamp();
            leaf.AddPairs(this); //.AddPairs(this);
            IncrementStamp();
            return leaf;
        }