• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Foundation.IntByRef类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: DebugCheckIntegrity

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


示例17: _IVisitor4_99

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


示例18: _IClosure4_47

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


示例19: _IVisitor4_26

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


示例20: AssertStoredField

		private void AssertStoredField(Type objectClass, string fieldName, object expectedFieldValue
			, Type expectedFieldType, bool hasIndex, bool isArray)
		{
			IStoredClass storedClass = StoredClass(objectClass);
			IStoredField[] storedFields = storedClass.GetStoredFields();
			Assert.AreEqual(1, storedFields.Length);
			IStoredField storedField = storedFields[0];
			Assert.AreEqual(fieldName, storedField.GetName());
			IStoredField storedFieldByName = storedClass.StoredField(fieldName, expectedFieldType
				);
			Assert.AreEqual(storedField, storedFieldByName);
			object item = RetrieveOnlyInstance(objectClass);
			Assert.AreEqual(expectedFieldValue, storedField.Get(item));
			IReflectClass fieldType = storedField.GetStoredType();
			Assert.AreEqual(Reflector().ForClass(expectedFieldType), fieldType);
			Assert.AreEqual(isArray, storedField.IsArray());
			if (IsMultiSession())
			{
				return;
			}
			Assert.AreEqual(hasIndex, storedField.HasIndex());
			// FIXME: test rename
			if (!hasIndex)
			{
				Assert.Expect(typeof(Exception), new _ICodeBlock_113(storedField));
			}
			else
			{
				IntByRef count = new IntByRef();
				storedField.TraverseValues(new _IVisitor4_123(count, expectedFieldValue));
				Assert.AreEqual(1, count.value);
			}
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:33,代码来源:StoredClassTestCase.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Foundation.List4类代码示例发布时间:2022-05-24
下一篇:
C# Foundation.Hashtable4类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap