Ejemplo n.º 1
0
 internal virtual void CreateIDMapping(DefragmentServicesImpl context, int objectID
                                       , bool isClassID)
 {
     if (BatchFull())
     {
         Flush(context);
     }
     _ids = TreeInt.Add(_ids, (isClassID ? -objectID : objectID));
 }
Ejemplo n.º 2
0
        private Tree CreateTree(int[] values)
        {
            Tree tree = new TreeInt(values[0]);

            for (int i = 1; i < values.Length; i++)
            {
                tree = tree.Add(new TreeInt(values[i]));
            }
            return(tree);
        }
Ejemplo n.º 3
0
            public bool Match(object current)
            {
                var id = ((int)current);

                if (ids.Find(id) != null)
                {
                    return(false);
                }
                ids = (TreeInt)ids.Add(new TreeInt(id));
                return(true);
            }
Ejemplo n.º 4
0
 public void Visit(object node)
 {
     idsNew.value = TreeInt.Add(((TreeInt)idsNew.value), ((TreeInt)node)._key);
 }