public static void Traverse(IIndexedNode node, IIntVisitor visitor) { IEnumerator i = node.GetEnumerator(); while (i.MoveNext()) { IFieldIndexKey composite = (IFieldIndexKey)i.Current; visitor.Visit(composite.ParentID()); } }
public static TreeInt AddToTree(TreeInt tree, IIndexedNode node) { IEnumerator i = node.GetEnumerator(); while (i.MoveNext()) { IFieldIndexKey composite = (IFieldIndexKey)i.Current; tree = (TreeInt)((TreeInt)Tree.Add(tree, new TreeInt(composite.ParentID()))); } return tree; }
public static TreeInt AddToTree(TreeInt tree, IIndexedNode node) { var i = node.GetEnumerator(); while (i.MoveNext()) { var composite = (IFieldIndexKey)i.Current; tree = (TreeInt)Tree.Add(tree, new TreeInt(composite.ParentID())); } return(tree); }
public override IEnumerator GetEnumerator() { return(new IndexedPathIterator(this, _next.GetEnumerator())); }