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

C# Foundation.List4类代码示例

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

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



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

示例1: Add

 internal void Add(WeakReferenceHandler reference)
 {
     lock (this)
     {
         _list = new List4(_list, reference);
     }
 }
开发者ID:masroore,项目名称:db4o,代码行数:7,代码来源:WeakReferenceHandlerQueue.cs


示例2: Poll

        internal void Poll(ObjectContainerBase objectContainer) {
            List4 remove = null;
            lock(this){
                System.Collections.IEnumerator i = new Iterator4Impl(_list);
                _list = null;
                while(i.MoveNext()){
					WeakReferenceHandler refHandler = (WeakReferenceHandler)i.Current;
                    if(refHandler.IsAlive){
                        _list = new List4(_list, refHandler);
                    }else{
                        remove = new List4(remove, refHandler.ObjectReference);
                    }
                }
            }
            System.Collections.IEnumerator j = new Iterator4Impl(remove);
            while (j.MoveNext())
            {
                lock (objectContainer.Lock())
                {
                    if (objectContainer.IsClosed())
                    {
                        return;
                    }
                    objectContainer.RemoveFromAllReferenceSystems(j.Current);
                }
            }
        }
开发者ID:erdincay,项目名称:db4o,代码行数:27,代码来源:WeakReferenceHandlerQueue.cs


示例3: RemoveNext

		private void RemoveNext()
		{
			_next = ((List4)_next._next);
			if (_next == null)
			{
				_insertionPoint = null;
			}
		}
开发者ID:erdincay,项目名称:db4o,代码行数:8,代码来源:NonblockingQueue.cs


示例4: PlayCommandList

 public void PlayCommandList(List4 commandList)
 {
     while (commandList != null)
     {
         IIoCommand ioCommand = (IIoCommand)commandList._element;
         ioCommand.Replay(_bin);
         commandList = commandList._next;
     }
 }
开发者ID:superyfwy,项目名称:db4o,代码行数:9,代码来源:LogReplayer.cs


示例5: Pop

		public virtual object Pop()
		{
			if (_tail == null)
			{
				throw new InvalidOperationException();
			}
			object res = _tail._element;
			_tail = ((List4)_tail._next);
			return res;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:10,代码来源:Stack4.cs


示例6: MoveNext

		public virtual bool MoveNext()
		{
			if (_next == null)
			{
				_current = Iterators.NoElement;
				return false;
			}
			_current = ((object)_next._element);
			_next = ((List4)_next._next);
			return true;
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:11,代码来源:Iterator4Impl.cs


示例7: Size

 public static int Size(List4 list)
 {
     var counter = 0;
     var nextList = list;
     while (nextList != null)
     {
         counter++;
         nextList = nextList._next;
     }
     return counter;
 }
开发者ID:masroore,项目名称:db4o,代码行数:11,代码来源:List4.cs


示例8: DoPrepend

		private void DoPrepend(object element)
		{
			if (_first == null)
			{
				DoAdd(element);
			}
			else
			{
				_first = new List4(_first, element);
				_size++;
			}
		}
开发者ID:Galigator,项目名称:db4o,代码行数:12,代码来源:Collection4.cs


示例9: Add

		public void Add(object obj)
		{
			List4 newNode = new List4(null, obj);
			if (_insertionPoint == null)
			{
				_next = newNode;
			}
			else
			{
				_insertionPoint._next = newNode;
			}
			_insertionPoint = newNode;
		}
开发者ID:erdincay,项目名称:db4o,代码行数:13,代码来源:NonblockingQueue.cs


示例10: DoAdd

		private void DoAdd(object element)
		{
			if (_last == null)
			{
				_first = new List4(element);
				_last = _first;
			}
			else
			{
				_last._next = new List4(element);
				_last = ((List4)_last._next);
			}
			_size++;
		}
开发者ID:Galigator,项目名称:db4o,代码行数:14,代码来源:Collection4.cs


示例11: ReadCommandList

 public List4 ReadCommandList()
 {
     List4 list = null;
     StreamReader reader = new StreamReader(_logFilePath);
     String line = null;
     while ((line = reader.ReadLine()) != null)
     {
         IIoCommand ioCommand = ReadLine(line);
         if (ioCommand != null)
         {
             list = new List4(list, ioCommand);
         }
     }
     reader.Close();
     return list;
 }
开发者ID:superyfwy,项目名称:db4o,代码行数:16,代码来源:LogReplayer.cs


示例12: _Iterator4Impl_82

			public _Iterator4Impl_82(NonblockingQueue _enclosing, List4 origInsertionPoint, List4
				 origNext, List4 baseArg1) : base(baseArg1)
			{
				this._enclosing = _enclosing;
				this.origInsertionPoint = origInsertionPoint;
				this.origNext = origNext;
			}
开发者ID:erdincay,项目名称:db4o,代码行数:7,代码来源:NonblockingQueue.cs


示例13: Iterate

		public static IEnumerator Iterate(List4 list)
		{
			if (list == null)
			{
				return EmptyIterator;
			}
			Collection4 collection = new Collection4();
			while (list != null)
			{
				collection.Add(list._element);
				list = ((List4)list._next);
			}
			return collection.GetEnumerator();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:14,代码来源:Iterators.cs


示例14: Iterator4Impl

		public Iterator4Impl(List4 first)
		{
			_first = first;
			_next = first;
			_current = Iterators.NoElement;
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:6,代码来源:Iterator4Impl.cs


示例15: ExchangeConstraint

		// virtual
		internal virtual void ExchangeConstraint(Db4objects.Db4o.Internal.Query.Processor.QCon
			 a_exchange, Db4objects.Db4o.Internal.Query.Processor.QCon a_with)
		{
			List4 previous = null;
			List4 current = _children;
			while (current != null)
			{
				if (current._element == a_exchange)
				{
					if (previous == null)
					{
						_children = ((List4)current._next);
					}
					else
					{
						previous._next = ((List4)current._next);
					}
				}
				previous = current;
				current = ((List4)current._next);
			}
			_children = new List4(_children, a_with);
		}
开发者ID:Galigator,项目名称:db4o,代码行数:24,代码来源:QCon.cs


示例16: StillToSet

		internal virtual void StillToSet(Transaction transaction, ObjectReference @ref, IUpdateDepth
			 updateDepth)
		{
			if (StackIsSmall())
			{
				if (@ref.ContinueSet(transaction, updateDepth))
				{
					return;
				}
			}
			_stillToSet = new List4(_stillToSet, new ObjectContainerBase.PendingSet(transaction
				, @ref, updateDepth));
		}
开发者ID:erdincay,项目名称:db4o,代码行数:13,代码来源:ObjectContainerBase.cs


示例17: AddConstraint

		internal virtual Db4objects.Db4o.Internal.Query.Processor.QCon AddConstraint(Db4objects.Db4o.Internal.Query.Processor.QCon
			 a_child)
		{
			_children = new List4(_children, a_child);
			return a_child;
		}
开发者ID:Galigator,项目名称:db4o,代码行数:6,代码来源:QCon.cs


示例18: Collection4Iterator

		public Collection4Iterator(Collection4 collection, List4 first) : base(first)
		{
			_collection = collection;
			_initialVersion = CurrentVersion();
		}
开发者ID:superyfwy,项目名称:db4o,代码行数:5,代码来源:Collection4Iterator.cs


示例19: Revert

		public static IEnumerator Revert(IEnumerator iterator)
		{
			iterator.Reset();
			List4 tail = null;
			while (iterator.MoveNext())
			{
				tail = new List4(tail, iterator.Current);
			}
			return Iterate(tail);
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:10,代码来源:Iterators.cs


示例20: AddDependant

 internal virtual void AddDependant(QCandidate
     a_candidate)
 {
     _dependants = new List4(_dependants, a_candidate);
 }
开发者ID:masroore,项目名称:db4o,代码行数:5,代码来源:QCandidate.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Foundation.Tree类代码示例发布时间:2022-05-24
下一篇:
C# Foundation.IntByRef类代码示例发布时间: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