Example #1
0
 public _IVisitor4_29(OverlapMap _enclosing, ByRef prevSlot, Sharpen.Util.ISet overlaps
                      )
 {
     this._enclosing = _enclosing;
     this.prevSlot   = prevSlot;
     this.overlaps   = overlaps;
 }
Example #2
0
 public CollectionHolder(string name, IDictionary theMap, Sharpen.Util.ISet theSet
                         , IList theList)
 {
     this.name = name;
     map       = theMap;
     set       = theSet;
     list      = theList;
 }
Example #3
0
		public CollectionHolder(string name, IDictionary theMap, Sharpen.Util.ISet theSet
			, IList theList)
		{
			this.name = name;
			map = theMap;
			set = theSet;
			list = theList;
		}
        public static IDictionary TypesFor(LocalObjectContainer db, Sharpen.Util.ISet ids
                                           )
        {
            IDictionary           id2clazzes = new Hashtable();
            ClassMetadataIterator iter       = db.ClassCollection().Iterator();

            while (iter.MoveNext())
            {
                for (IEnumerator idIter = ids.GetEnumerator(); idIter.MoveNext();)
                {
                    int           id    = ((int)idIter.Current);
                    ClassMetadata clazz = iter.CurrentClass();
                    BTree         btree = BTreeClassIndexStrategy.Btree(clazz);
                    if (btree.Search(db.SystemTransaction(), id) != null)
                    {
                        Sharpen.Util.ISet clazzes = ((Sharpen.Util.ISet)id2clazzes[id]);
                        if (clazzes == null)
                        {
                            clazzes        = new HashSet();
                            id2clazzes[id] = clazzes;
                        }
                        clazzes.Add(clazz);
                    }
                }
            }
            IDictionary id2clazz = new Hashtable();

            for (IEnumerator idIter = id2clazzes.Keys.GetEnumerator(); idIter.MoveNext();)
            {
                int id = ((int)idIter.Current);
                Sharpen.Util.ISet clazzes      = ((Sharpen.Util.ISet)id2clazzes[id]);
                ClassMetadata     mostSpecific = null;
                for (IEnumerator curClazzIter = clazzes.GetEnumerator(); curClazzIter.MoveNext();)
                {
                    ClassMetadata curClazz = ((ClassMetadata)curClazzIter.Current);
                    for (IEnumerator cmpClazzIter = clazzes.GetEnumerator(); cmpClazzIter.MoveNext();)
                    {
                        ClassMetadata cmpClazz = ((ClassMetadata)cmpClazzIter.Current);
                        if (curClazz.Equals(cmpClazz._ancestor))
                        {
                            goto OUTER_continue;
                        }
                    }
                    mostSpecific = curClazz;
                    break;
                    OUTER_continue :;
                }
                OUTER_break :;
                id2clazz[id] = mostSpecific;
            }
            return(id2clazz);
        }
Example #5
0
 private void Purge(Sharpen.Util.ISet purged, PrefetchConfigurationTestCase.Item item
                    )
 {
     if (purged.Contains(item))
     {
         return;
     }
     purged.Add(item);
     Client().Purge(item);
     PrefetchConfigurationTestCase.Item child = item.child;
     if (null != child)
     {
         Purge(purged, child);
     }
 }
Example #6
0
 public virtual void Set(Sharpen.Util.ISet set)
 {
     this.set = set;
 }
Example #7
0
		public virtual void Set(Sharpen.Util.ISet set)
		{
			this.set = set;
		}