本文整理汇总了C#中IVisitor4类的典型用法代码示例。如果您正苦于以下问题:C# IVisitor4类的具体用法?C# IVisitor4怎么用?C# IVisitor4使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IVisitor4类属于命名空间,在下文中一共展示了IVisitor4类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TraverseAll
public override void TraverseAll(Transaction ta, IVisitor4 command)
{
if (_btreeIndex != null)
{
_btreeIndex.TraverseKeys(ta, command);
}
}
示例2: TraverseKeys
public static void TraverseKeys(IBTreeRange result, IVisitor4 visitor)
{
IEnumerator i = result.Keys();
while (i.MoveNext())
{
visitor.Visit(i.Current);
}
}
示例3: TraverseLocked
public virtual void TraverseLocked(IVisitor4 visitor)
{
int currentVersion = _version;
Tree.Traverse(_tree, visitor);
if (_version != currentVersion)
{
throw new InvalidOperationException();
}
}
示例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);
}
}
示例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;
}
示例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));
}
}
}
示例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;
}
}
}
示例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);
}
}
}
}
示例9: Accept
public void Accept(IVisitor4 visitor)
{
slotChanges.TraverseMutable(visitor);
}
示例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;
}
示例11: Foreach
protected virtual void Foreach(Type clazz, IVisitor4 visitor)
{
Foreach(Db(), clazz, visitor);
}
示例12: Accept
public virtual void Accept(IVisitor4 visitor)
{
Traverse(new _IVisitor4_513(visitor));
}
示例13: Traverse
public void Traverse(IVisitor4 visitor)
{
if (_preceding != null)
{
_preceding.Traverse(visitor);
}
visitor.Visit((Tree)this);
if (_subsequent != null)
{
_subsequent.Traverse(visitor);
}
}
示例14: Accept
public void Accept(IVisitor4 visitor)
{
for (IEnumerator expectedFreeIdIter = ids.GetEnumerator(); expectedFreeIdIter.MoveNext
(); )
{
int expectedFreeId = ((int)expectedFreeIdIter.Current);
visitor.Visit(expectedFreeId);
}
}
示例15: Traverse
public override void Traverse(IVisitor4 visitor)
{
if (_freeByAddress == null)
{
return;
}
_freeByAddress.Traverse(new _IVisitor4_236(visitor));
}