Пример #1
0
        internal GreenModelGroup ReplaceObject(ObjectId oid, ObjectId targetOid)
        {
            GreenModelGroup result = this;

            foreach (var model in this.models.Values)
            {
                result = result.UpdateModel(model.ReplaceObject(oid, targetOid));
            }
            return(result);
        }
Пример #2
0
        internal GreenModelGroup PurgeWeakObjects(HashSet <ObjectId> strongObjects)
        {
            GreenModelGroup result = this;

            foreach (var model in this.models.Values)
            {
                result = result.UpdateModel(model.PurgeWeakObjects(strongObjects));
            }
            return(result);
        }
Пример #3
0
 public GreenModelUpdateContext(bool newUpdater, GreenModelUpdater updater, GreenModelGroup group)
 {
     this.NewUpdater         = newUpdater;
     this.Updater            = updater;
     this.OriginalModelGroup = group;
 }