Exemple #1
0
 public void Visit(object treeInt)
 {
     var id = ((TreeInt) treeInt)._key;
     var reader = stream.ReadStatefulBufferById(_enclosing._enclosing.
         _trans, id);
     if (reader != null)
     {
         var oh = new ObjectHeader(stream, reader);
         var context = new CollectIdContext(_enclosing._enclosing._trans
             , oh, reader);
         oh.ClassMetadata().CollectIDs(context, fieldName);
         Tree.Traverse(context.Ids(), new _IVisitor4_394(idsNew));
     }
 }
		private void AssertCollectedIds(CollectIdContext context, object[] expectedReferences
			)
		{
			Iterator4Assert.SameContent(Iterators.Map(expectedReferences, new _IFunction4_66(
				this)), new TreeKeyIterator(context.Ids()));
		}
Exemple #3
0
				public void Visit(object treeInt)
				{
					int id = ((TreeInt)treeInt)._key;
					StatefulBuffer buffer = this._enclosing._container.ReadStatefulBufferById(this._enclosing
						._trans, id);
					if (buffer != null)
					{
						ObjectHeader oh = new ObjectHeader(this._enclosing._container, buffer);
						CollectIdContext context = new CollectIdContext(this._enclosing._trans, oh, buffer
							);
						oh.ClassMetadata().CollectIDs(context, fieldName);
						Tree.Traverse(context.Ids(), new _IVisitor4_516(idsNew));
					}
				}