Example #1
0
		public override void TraverseAll(Transaction ta, IVisitor4 command)
		{
			if (_btreeIndex != null)
			{
				_btreeIndex.TraverseKeys(ta, command);
			}
		}
 public virtual void VisitCachedReferences(IVisitor4 visitor)
 {
     if (_referencesByObject != null)
     {
         _referencesByObject.Traverse(new _IVisitor4_287(visitor));
     }
 }
 public _IVisitor4_861(FieldMetadata _enclosing, IVisitor4 userVisitor, IContext context
                       )
 {
     this._enclosing  = _enclosing;
     this.userVisitor = userVisitor;
     this.context     = context;
 }
                    public void Accept(IVisitor4 visitor)
                    {
                        SlotChange slotChange = new SlotChange(id);

                        slotChange.NotifySlotCreated(new Slot(address, length));
                        visitor.Visit(slotChange);
                    }
        internal static void ForEachCollectionElement(Object obj, IVisitor4 visitor)
        {
            IEnumerator enumerator = GetCollectionEnumerator(obj, false);

            if (enumerator != null)
            {
                // If obj is a map (IDictionary in .NET speak) call Visit() with the key
                // otherwise use the element itself
                if (enumerator is IDictionaryEnumerator)
                {
                    IDictionaryEnumerator dictEnumerator = enumerator as IDictionaryEnumerator;
                    while (enumerator.MoveNext())
                    {
                        visitor.Visit(dictEnumerator.Key);
                    }
                }
                else
                {
                    while (enumerator.MoveNext())
                    {
                        visitor.Visit(enumerator.Current);
                    }
                }
            }
        }
 public override void TraverseAll(Transaction ta, IVisitor4 command)
 {
     if (_btreeIndex != null)
     {
         _btreeIndex.TraverseKeys(ta, command);
     }
 }
 public _TraverseFieldCommand_65(string fieldName, IVisitor4 visitor, ClassMetadata
                                 classMetadata)
 {
     this.fieldName     = fieldName;
     this.visitor       = visitor;
     this.classMetadata = classMetadata;
 }
Example #8
0
 internal void Traverse(IVisitor4 a_visitor)
 {
     if (i_root != null)
     {
         i_root.Traverse(a_visitor);
     }
 }
Example #9
0
 private void TraverseAllNodes(IVisitor4 visitor)
 {
     if (_nodes == null)
     {
         return;
     }
     _nodes.Traverse(new _IVisitor4_543(visitor));
 }
Example #10
0
 public static void Traverse(Tree tree, IVisitor4 visitor)
 {
     if (tree == null)
     {
         return;
     }
     tree.Traverse(visitor);
 }
Example #11
0
 internal virtual void Traverse(IVisitor4 visitor)
 {
     ToQCandidates();
     if (_candidates != null)
     {
         _candidates.Traverse(visitor);
     }
 }
 public override void Traverse(IVisitor4 visitor)
 {
     if (_freeByAddress == null)
     {
         return;
     }
     _freeByAddress.Traverse(new _IVisitor4_236(visitor));
 }
Example #13
0
 private void TraverseSlotChanges(IVisitor4 visitor)
 {
     if (_parentIdSystem != null)
     {
         _parentIdSystem.TraverseSlotChanges(visitor);
     }
     _slotChanges.TraverseSlotChanges(visitor);
 }
Example #14
0
 public virtual void TraverseAll(ClassMetadata classMetadata, IVisitor4 command)
 {
     if (!classMetadata.HasClassIndex())
     {
         return;
     }
     classMetadata.Index().TraverseAll(Sourcedb.Transaction(this), command);
 }
 // do nothing
 public virtual void TraverseReferences(IVisitor4 visitor)
 {
     if (_hashCodeTree == null)
     {
         return;
     }
     _hashCodeTree.Hc_traverse(visitor);
 }
Example #16
0
 public void Accept(IVisitor4 visitor)
 {
     for (int slotChangeIndex = 0; slotChangeIndex < slotChanges.Length; ++slotChangeIndex)
     {
         SlotChange slotChange = slotChanges[slotChangeIndex];
         visitor.Visit(slotChange);
     }
 }
		public static void TraverseKeys(IBTreeRange result, IVisitor4 visitor)
		{
			IEnumerator i = result.Keys();
			while (i.MoveNext())
			{
				visitor.Visit(i.Current);
			}
		}
Example #18
0
 public void TraverseValues(IVisitor4 userVisitor)
 {
     if (!Alive())
     {
         return;
     }
     TraverseValues(Container().Transaction, userVisitor);
 }
Example #19
0
 protected virtual void TraverseDelete(IVisitor4 deleteVisitor)
 {
     if (_delete == null)
     {
         return;
     }
     _delete.Traverse(deleteVisitor);
     _delete = null;
 }
Example #20
0
        public virtual void TraverseAllIndexSlots(BTree btree, IVisitor4 command)
        {
            IEnumerator slotIDIter = btree.AllNodeIds(Sourcedb.Transaction(this));

            while (slotIDIter.MoveNext())
            {
                command.Visit(slotIDIter.Current);
            }
        }
Example #21
0
 internal bool Filter(IVisitor4 a_host)
 {
     if (i_root != null)
     {
         i_root.Traverse(a_host);
         i_root = i_root.Filter(new _IPredicate4_308());
     }
     return(i_root != null);
 }
Example #22
0
        public virtual void VisitCachedReferences(IVisitor4 visitor)
        {
            IEnumerator i = _referencesByObject.Values.GetEnumerator();

            while (i.MoveNext())
            {
                visitor.Visit(i.Current);
            }
        }
Example #23
0
        public static void TraverseKeys(IBTreeRange result, IVisitor4 visitor)
        {
            IEnumerator i = result.Keys();

            while (i.MoveNext())
            {
                visitor.Visit(i.Current);
            }
        }
Example #24
0
 public void Accept(IVisitor4 visitor)
 {
     for (IEnumerator expectedFreeIdIter = ids.GetEnumerator(); expectedFreeIdIter.MoveNext
              ();)
     {
         int expectedFreeId = ((int)expectedFreeIdIter.Current);
         visitor.Visit(expectedFreeId);
     }
 }
Example #25
0
		public virtual void TraverseLocked(IVisitor4 visitor)
		{
			int currentVersion = _version;
			Tree.Traverse(_tree, visitor);
			if (_version != currentVersion)
			{
				throw new InvalidOperationException();
			}
		}
Example #26
0
		internal virtual bool Filter(IVisitor4 visitor)
		{
			ToQCandidates();
			if (_candidates != null)
			{
				_candidates.Traverse(visitor);
				_candidates = (QCandidateBase)_candidates.Filter(new _IPredicate4_56());
			}
			return _candidates != null;
		}
Example #27
0
        protected virtual void Foreach(IExtObjectContainer container, Type clazz, IVisitor4
                                       visitor)
        {
            IObjectSet set = NewQuery(container, clazz).Execute();

            while (set.HasNext())
            {
                visitor.Visit(set.Next());
            }
        }
Example #28
0
		public virtual void TraverseMutable(IVisitor4 visitor)
		{
			Collection4 currentContent = new Collection4();
			TraverseLocked(new _IVisitor4_51(currentContent));
			IEnumerator i = currentContent.GetEnumerator();
			while (i.MoveNext())
			{
				visitor.Visit(i.Current);
			}
		}
Example #29
0
 internal virtual bool Filter(IVisitor4 visitor)
 {
     ToQCandidates();
     if (_candidates != null)
     {
         _candidates.Traverse(visitor);
         _candidates = (QCandidateBase)_candidates.Filter(new _IPredicate4_56());
     }
     return(_candidates != null);
 }
Example #30
0
        public virtual void TraverseLocked(IVisitor4 visitor)
        {
            var currentVersion = _version;

            Tree.Traverse(_tree, visitor);
            if (_version != currentVersion)
            {
                throw new InvalidOperationException();
            }
        }
Example #31
0
 public virtual void TraverseKeys(Transaction trans, IVisitor4 visitor)
 {
     EnsureActive(trans);
     if (_root == null)
     {
         return;
     }
     _root.TraverseKeys(trans, visitor);
     ConvertCacheEvictedNodesToReadMode();
 }
Example #32
0
        public virtual void TraverseAllIndexSlots(ClassMetadata classMetadata, IVisitor4
                                                  command)
        {
            IEnumerator slotIDIter = classMetadata.Index().AllSlotIDs(Sourcedb.Transaction(this
                                                                                           ));

            while (slotIDIter.MoveNext())
            {
                command.Visit(slotIDIter.Current);
            }
        }
Example #33
0
 public void Traverse(IVisitor4 visitor)
 {
     if (_preceding != null)
     {
         _preceding.Traverse(visitor);
     }
     visitor.Visit((Tree)this);
     if (_subsequent != null)
     {
         _subsequent.Traverse(visitor);
     }
 }
Example #34
0
        public virtual void TraverseMutable(IVisitor4 visitor)
        {
            var currentContent = new Collection4();

            TraverseLocked(new _IVisitor4_51(currentContent));
            var i = currentContent.GetEnumerator();

            while (i.MoveNext())
            {
                visitor.Visit(i.Current);
            }
        }
Example #35
0
 public void TraverseFromLeaves(IVisitor4 a_visitor)
 {
     if (_preceding != null)
     {
         _preceding.TraverseFromLeaves(a_visitor);
     }
     if (_subsequent != null)
     {
         _subsequent.TraverseFromLeaves(a_visitor);
     }
     a_visitor.Visit(this);
 }
		public void AttachQueryNode(string fieldName, IVisitor4 visitor)
		{
			ClassMetadataIterator i = Iterator();
			while (i.MoveNext())
			{
				ClassMetadata classMetadata = i.CurrentClass();
				if (!classMetadata.IsInternal())
				{
					classMetadata.TraverseAllAspects(new _TraverseFieldCommand_65(fieldName, visitor, 
						classMetadata));
				}
			}
		}
Example #37
0
 public virtual void ForEachKeyForIdentity(IVisitor4 visitor, object obj)
 {
     for (var i = 0; i < _table.Length; i++)
     {
         var entry = _table[i];
         while (entry != null)
         {
             if (entry._object == obj)
             {
                 visitor.Visit(entry.Key());
             }
             entry = entry._next;
         }
     }
 }
Example #38
0
				public void Accept(IVisitor4 visitor)
				{
					for (IEnumerator expectedFreeIdIter = ids.GetEnumerator(); expectedFreeIdIter.MoveNext
						(); )
					{
						int expectedFreeId = ((int)expectedFreeIdIter.Current);
						visitor.Visit(expectedFreeId);
					}
				}
Example #39
0
				public void Accept(IVisitor4 visitor)
				{
					for (int slotChangeIndex = 0; slotChangeIndex < slotChanges.Length; ++slotChangeIndex)
					{
						SlotChange slotChange = slotChanges[slotChangeIndex];
						visitor.Visit(slotChange);
					}
				}
Example #40
0
				public void Accept(IVisitor4 visitor)
				{
					visitor.Visit(id);
				}
Example #41
0
 internal static void ForEachCollectionElement(Object obj, IVisitor4 visitor)
 {
     IEnumerator enumerator = GetCollectionEnumerator(obj, false);
     if (enumerator != null)
     {
         // If obj is a map (IDictionary in .NET speak) call Visit() with the key
         // otherwise use the element itself
         if (enumerator is IDictionaryEnumerator)
         {
             IDictionaryEnumerator dictEnumerator = enumerator as IDictionaryEnumerator;
             while (enumerator.MoveNext())
             {
                 visitor.Visit(dictEnumerator.Key);
             }
         }
         else
         {
             while (enumerator.MoveNext())
             {
                 visitor.Visit(enumerator.Current);
             }
         }
     }
 }
		private void TraverseSlotChanges(IVisitor4 visitor)
		{
			if (_parentIdSystem != null)
			{
				_parentIdSystem.TraverseSlotChanges(visitor);
			}
			_slotChanges.TraverseSlotChanges(visitor);
		}
Example #43
0
		public virtual void Accept(IVisitor4 visitor)
		{
			Traverse(new _IVisitor4_513(visitor));
		}
Example #44
0
		public void Traverse(IVisitor4 visitor)
		{
			if (_preceding != null)
			{
				_preceding.Traverse(visitor);
			}
			visitor.Visit((Tree)this);
			if (_subsequent != null)
			{
				_subsequent.Traverse(visitor);
			}
		}
Example #45
0
		internal bool Filter(IVisitor4 a_host)
		{
			if (i_root != null)
			{
				i_root.Traverse(a_host);
				i_root = i_root.Filter(new _IPredicate4_308());
			}
			return i_root != null;
		}
		public virtual void TraverseIds(IVisitor4 visitor)
		{
			_bTree.TraverseKeys(_container.SystemTransaction(), visitor);
		}
			public _IVisitor4_236(IVisitor4 visitor)
			{
				this.visitor = visitor;
			}
		public override void Traverse(IVisitor4 visitor)
		{
			if (_freeByAddress == null)
			{
				return;
			}
			_freeByAddress.Traverse(new _IVisitor4_236(visitor));
		}
Example #49
0
		internal void Traverse(IVisitor4 a_visitor)
		{
			if (i_root != null)
			{
				i_root.Traverse(a_visitor);
			}
		}
Example #50
0
		internal virtual void ForEachChildField(string name, IVisitor4 visitor)
		{
			IEnumerator i = IterateChildren();
			while (i.MoveNext())
			{
				object obj = i.Current;
				if (obj is QConObject)
				{
					if (((QConObject)obj).GetField().Name().Equals(name))
					{
						visitor.Visit(obj);
					}
				}
			}
		}
		protected virtual void Foreach(Type clazz, IVisitor4 visitor)
		{
			Foreach(Db(), clazz, visitor);
		}
		public virtual void Traverse(IVisitor4 visitor)
		{
		}
Example #53
0
		public static void Traverse(Tree tree, IVisitor4 visitor)
		{
			if (tree == null)
			{
				return;
			}
			tree.Traverse(visitor);
		}
Example #54
0
		public virtual void TraverseValues(IVisitor4 visitor)
		{
			_fieldMetadata.TraverseValues(_transaction, visitor);
		}
Example #55
0
		public void TraverseFromLeaves(IVisitor4 a_visitor)
		{
			if (_preceding != null)
			{
				_preceding.TraverseFromLeaves(a_visitor);
			}
			if (_subsequent != null)
			{
				_subsequent.TraverseFromLeaves(a_visitor);
			}
			a_visitor.Visit(this);
		}
Example #56
0
			public void Accept(IVisitor4 visitor)
			{
				slotChanges.TraverseMutable(visitor);
			}
Example #57
0
			public _IVisitor4_513(IVisitor4 visitor)
			{
				this.visitor = visitor;
			}
			public void Accept(IVisitor4 visitor)
			{
				this._enclosing.TraverseSlotChanges(visitor);
			}
		protected virtual void Foreach(IExtObjectContainer container, Type clazz, IVisitor4
			 visitor)
		{
			IObjectSet set = NewQuery(container, clazz).Execute();
			while (set.HasNext())
			{
				visitor.Visit(set.Next());
			}
		}
		public virtual void Traverse(IVisitor4 visitor)
		{
			Hc_traverse(visitor);
		}