internal virtual void CreateIDMapping(DefragmentServicesImpl context, int objectID , bool isClassID) { if (BatchFull()) { Flush(context); } _ids = TreeInt.Add(_ids, (isClassID ? -objectID : objectID)); }
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); }
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); }
public void Visit(object node) { idsNew.value = TreeInt.Add(((TreeInt)idsNew.value), ((TreeInt)node)._key); }