当前位置: 首页>>代码示例>>C#>>正文


C# Foundation.IntByRef类代码示例

本文整理汇总了C#中Db4objects.Db4o.Foundation.IntByRef的典型用法代码示例。如果您正苦于以下问题:C# IntByRef类的具体用法?C# IntByRef怎么用?C# IntByRef使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IntByRef类属于Db4objects.Db4o.Foundation命名空间,在下文中一共展示了IntByRef类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Commit

		public override void Commit()
		{
			IntByRef removedReferenceCount = new IntByRef();
			TraverseNewReferences(new _IVisitor4_26(this, removedReferenceCount));
			CreateNewReferences();
			ReferenceCountChanged(-removedReferenceCount.value);
		}
开发者ID:erdincay,项目名称:db4o,代码行数:7,代码来源:MonitoringReferenceSystem.cs

示例2: TestCancelledTraversalWithStartingPointInTheTree

 public virtual void TestCancelledTraversalWithStartingPointInTheTree()
 {
     var visits = new IntByRef();
     var tree = CreateTree();
     Tree.Traverse(tree, new TreeInt(6), new _ICancellableVisitor4_41(visits));
     Assert.AreEqual(1, visits.value);
 }
开发者ID:masroore,项目名称:db4o,代码行数:7,代码来源:TreeTestCase.cs

示例3: Rollback

 public override void Rollback()
 {
     var newReferencesCount = new IntByRef();
     TraverseNewReferences(new _IVisitor4_63(newReferencesCount));
     CreateNewReferences();
     ReferenceCountChanged(-newReferencesCount.value);
 }
开发者ID:masroore,项目名称:db4o,代码行数:7,代码来源:MonitoringReferenceSystem.cs

示例4: AssertSingleTypeHandlerAspect

		//private void AssertSingleNullTypeHandlerAspect(Type storedClass)
		//{
		//    AssertSingleTypeHandlerAspect(storedClass, typeof(IgnoreFieldsTypeHandler));
		//}

        private void AssertSingleTypeHandlerAspect(Type storedClass, Type typeHandlerClass
            )
        {
            IntByRef aspectCount = new IntByRef(0);
            ClassMetadata classMetadata = ClassMetadata(storedClass);
            classMetadata.TraverseDeclaredAspects(new _IProcedure4_51(aspectCount, typeHandlerClass
                ));
        }
开发者ID:erdincay,项目名称:db4o,代码行数:13,代码来源:TypeHandlerConfigurationTestCase.cs

示例5: MarshalledLength

 public int MarshalledLength()
 {
     if (VariableLength())
     {
         var length = new IntByRef(Const4.IntLength);
         Traverse(new _IVisitor4_152(length));
         return length.value;
     }
     return MarshalledLength(Size());
 }
开发者ID:masroore,项目名称:db4o,代码行数:10,代码来源:TreeInt.cs

示例6: AssertTestRuns

		private void AssertTestRuns(int[] failingIndices)
		{
			IntByRef counter = new IntByRef();
			TestResult result = new _TestResult_29();
			new TestRunner(Iterators.Iterable(new OpaqueTestSuiteTestCase.SimpleTestSuite[] { 
				new OpaqueTestSuiteTestCase.SimpleTestSuite(counter, NumTests, failingIndices) }
				)).Run(result);
			Assert.AreEqual(NumTests, result.TestCount);
			Assert.AreEqual(failingIndices.Length, result.Failures.Count);
			Assert.AreEqual(NumTests + 2, counter.value);
		}
开发者ID:Galigator,项目名称:db4o,代码行数:11,代码来源:OpaqueTestSuiteTestCase.cs

示例7: TestItemCountChanged

 public virtual void TestItemCountChanged()
 {
     var changedCount = new IntByRef();
     IBTreeStructureListener listener = new _IBTreeStructureListener_63(changedCount);
     _btree.StructureListener(listener);
     changedCount.value = 0;
     Add(42);
     Assert.AreEqual(1, changedCount.value);
     Remove(42);
     Assert.AreEqual(-1, changedCount.value);
     changedCount.value = 0;
     Remove(42);
     Assert.AreEqual(0, changedCount.value);
 }
开发者ID:masroore,项目名称:db4o,代码行数:14,代码来源:BTreeStructureChangeListenerTestCase.cs

示例8: TestDelete

		public virtual void TestDelete()
		{
			IntByRef deletedCount = new IntByRef();
			IBTreeStructureListener listener = new _IBTreeStructureListener_39(deletedCount);
			_btree.StructureListener(listener);
			for (int i = 0; i < BtreeNodeSize + 1; i++)
			{
				Add(i);
			}
			for (int i = 0; i < BtreeNodeSize + 1; i++)
			{
				Remove(i);
			}
			Assert.AreEqual(2, deletedCount.value);
		}
开发者ID:Galigator,项目名称:db4o,代码行数:15,代码来源:BTreeStructureChangeListenerTestCase.cs

示例9: SimpleTestSuite

			public SimpleTestSuite(IntByRef counter, int numTests, int[] failingIndices) : this
				(counter, numTests, new _IClosure4_47(counter, numTests, failingIndices))
			{
			}
开发者ID:Galigator,项目名称:db4o,代码行数:4,代码来源:OpaqueTestSuiteTestCase.cs

示例10: _IProcedure4_136

			public _IProcedure4_136(ClassMarshaller _enclosing, IntByRef processedAspectCount
				, int aspectCount, ClassMetadata classMetadata, LatinStringIO sio, DefragmentContextImpl
				 context)
			{
				this._enclosing = _enclosing;
				this.processedAspectCount = processedAspectCount;
				this.aspectCount = aspectCount;
				this.classMetadata = classMetadata;
				this.sio = sio;
				this.context = context;
			}
开发者ID:erdincay,项目名称:db4o,代码行数:11,代码来源:ClassMarshaller.cs

示例11: _IProcedure4_108

			public _IProcedure4_108(ClassMarshaller _enclosing, IntByRef len, ObjectContainerBase
				 stream)
			{
				this._enclosing = _enclosing;
				this.len = len;
				this.stream = stream;
			}
开发者ID:erdincay,项目名称:db4o,代码行数:7,代码来源:ClassMarshaller.cs

示例12: _IVisitor4_63

			public _IVisitor4_63(IntByRef newReferencesCount)
			{
				this.newReferencesCount = newReferencesCount;
			}
开发者ID:erdincay,项目名称:db4o,代码行数:4,代码来源:MonitoringReferenceSystem.cs

示例13: Descend1

 private bool Descend1(QQuery query, string fieldName, IntByRef run)
 {
     if (run.value == 2 || i_constraints.Size() == 0)
     {
         // On the second run we are really creating a second independant
         // query network that is not joined to other higher level
         // constraints.
         // Let's see how this works out. We may need to join networks.
         run.value = 0;
         // prevent a double run of this code
         Stream().ClassCollection().AttachQueryNode(fieldName, new _IVisitor4_275(this));
     }
     CheckConstraintsEvaluationMode();
     var foundClass = new BooleanByRef(false);
     var i = IterateConstraints();
     while (i.MoveNext())
     {
         if (((QCon) i.Current).Attach(query, fieldName))
         {
             foundClass.value = true;
         }
     }
     return foundClass.value;
 }
开发者ID:masroore,项目名称:db4o,代码行数:24,代码来源:QQueryBase.cs

示例14: Descend

 public virtual IQuery Descend(string a_field)
 {
     lock (StreamLock())
     {
         var query = new QQuery(_trans, _this, a_field);
         var run = new IntByRef(1);
         if (!Descend1(query, a_field, run))
         {
             // try to add unparented nodes on the second run,
             // if not added in the first run and a descendant
             // was not found
             if (run.value == 1)
             {
                 run.value = 2;
                 if (!Descend1(query, a_field, run))
                 {
                     new QConUnconditional(_trans, false).Attach(query, a_field);
                 }
             }
         }
         return query;
     }
 }
开发者ID:masroore,项目名称:db4o,代码行数:23,代码来源:QQueryBase.cs

示例15: _IVisitor4_131

			public _IVisitor4_131(IntByRef lastEnd, IntByRef lastStart)
			{
				this.lastEnd = lastEnd;
				this.lastStart = lastStart;
			}
开发者ID:erdincay,项目名称:db4o,代码行数:5,代码来源:AbstractFreespaceManager.cs


注:本文中的Db4objects.Db4o.Foundation.IntByRef类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。