本文整理汇总了C#中IVisitor4类的典型用法代码示例。如果您正苦于以下问题:C# IVisitor4类的具体用法?C# IVisitor4怎么用?C# IVisitor4使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IVisitor4类属于命名空间,在下文中一共展示了IVisitor4类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: TraverseAll
public override void TraverseAll(Transaction ta, IVisitor4 command)
{
if (_btreeIndex != null)
{
_btreeIndex.TraverseKeys(ta, command);
}
}
开发者ID:erdincay,项目名称:db4o,代码行数:7,代码来源:BTreeClassIndexStrategy.cs
示例2: TraverseKeys
public static void TraverseKeys(IBTreeRange result, IVisitor4 visitor)
{
IEnumerator i = result.Keys();
while (i.MoveNext())
{
visitor.Visit(i.Current);
}
}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:8,代码来源:BTreeAssert.cs
示例3: TraverseLocked
public virtual void TraverseLocked(IVisitor4 visitor)
{
int currentVersion = _version;
Tree.Traverse(_tree, visitor);
if (_version != currentVersion)
{
throw new InvalidOperationException();
}
}
开发者ID:superyfwy,项目名称:db4o,代码行数:9,代码来源:LockedTree.cs
示例4: TraverseMutable
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);
}
}
开发者ID:superyfwy,项目名称:db4o,代码行数:10,代码来源:LockedTree.cs
示例5: Filter
internal virtual bool Filter(IVisitor4 visitor)
{
ToQCandidates();
if (_candidates != null)
{
_candidates.Traverse(visitor);
_candidates = (QCandidateBase)_candidates.Filter(new _IPredicate4_56());
}
return _candidates != null;
}
开发者ID:Galigator,项目名称:db4o,代码行数:10,代码来源:QueryResultCandidates.cs
示例6: AttachQueryNode
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));
}
}
}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:13,代码来源:ClassMetadataRepository.cs
示例7: ForEachKeyForIdentity
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;
}
}
}
开发者ID:masroore,项目名称:db4o,代码行数:15,代码来源:Hashtable4.cs
示例8: ForEachCollectionElement
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);
}
}
}
}
开发者ID:superyfwy,项目名称:db4o,代码行数:24,代码来源:Platform4.cs
示例9: Accept
public void Accept(IVisitor4 visitor)
{
slotChanges.TraverseMutable(visitor);
}
开发者ID:erdincay,项目名称:db4o,代码行数:4,代码来源:TransactionLogHandler.cs
示例10: Filter
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;
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:9,代码来源:QCandidates.cs
示例11: Foreach
protected virtual void Foreach(Type clazz, IVisitor4 visitor)
{
Foreach(Db(), clazz, visitor);
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:4,代码来源:AbstractDb4oTestCase.cs
示例12: Accept
public virtual void Accept(IVisitor4 visitor)
{
Traverse(new _IVisitor4_513(visitor));
}
开发者ID:erdincay,项目名称:db4o,代码行数:4,代码来源:Tree.cs
示例13: Traverse
public void Traverse(IVisitor4 visitor)
{
if (_preceding != null)
{
_preceding.Traverse(visitor);
}
visitor.Visit((Tree)this);
if (_subsequent != null)
{
_subsequent.Traverse(visitor);
}
}
开发者ID:erdincay,项目名称:db4o,代码行数:12,代码来源:Tree.cs
示例14: Accept
public void Accept(IVisitor4 visitor)
{
for (IEnumerator expectedFreeIdIter = ids.GetEnumerator(); expectedFreeIdIter.MoveNext
(); )
{
int expectedFreeId = ((int)expectedFreeIdIter.Current);
visitor.Visit(expectedFreeId);
}
}
开发者ID:Galigator,项目名称:db4o,代码行数:9,代码来源:IdSystemTestSuite.cs
示例15: Traverse
public override void Traverse(IVisitor4 visitor)
{
if (_freeByAddress == null)
{
return;
}
_freeByAddress.Traverse(new _IVisitor4_236(visitor));
}
开发者ID:superyfwy,项目名称:db4o,代码行数:8,代码来源:InMemoryFreespaceManager.cs
示例16: Accept
public void Accept(IVisitor4 visitor)
{
this._enclosing.TraverseSlotChanges(visitor);
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:4,代码来源:TransactionalIdSystemImpl.cs
示例17: TraverseSlotChanges
private void TraverseSlotChanges(IVisitor4 visitor)
{
if (_parentIdSystem != null)
{
_parentIdSystem.TraverseSlotChanges(visitor);
}
_slotChanges.TraverseSlotChanges(visitor);
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:8,代码来源:TransactionalIdSystemImpl.cs
示例18: ForEachChildField
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);
}
}
}
}
开发者ID:Galigator,项目名称:db4o,代码行数:15,代码来源:QCon.cs
示例19: Traverse
internal void Traverse(IVisitor4 a_visitor)
{
if (i_root != null)
{
i_root.Traverse(a_visitor);
}
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:7,代码来源:QCandidates.cs
示例20: _IVisitor4_236
public _IVisitor4_236(IVisitor4 visitor)
{
this.visitor = visitor;
}
开发者ID:superyfwy,项目名称:db4o,代码行数:4,代码来源:InMemoryFreespaceManager.cs
注:本文中的IVisitor4类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论