public XPathPredicateIterator(XPathPredicateIterator copy) : base(copy) { this.iterator = (XPathBaseIterator)copy.iterator.Clone(); this.predicate = copy.predicate; this.resultType = copy.resultType; this.pos = copy.pos; }
public XPathSimpleIterator(XPathBaseIterator parent) : base(parent) { this.parent = parent; navigator = parent.Current.Clone(); current = navigator.Clone(); pos = 0; }
public XPathSimpleIterator(XPathBaseIterator parent) : base (parent) { this.parent = parent; navigator = parent.Current.Clone(); current = navigator.Clone(); pos = 0; }
/* caveat: the base ctor gets the useless parent arg */ public XPathUnionIterator(XPathUnionIterator copy) : base(copy.parent) { this.left = (XPathBaseIterator)copy.left.Clone(); this.right = (XPathBaseIterator)copy.right.Clone(); this.moveRight = copy.moveRight; this.moveLeft = copy.moveLeft; }
public XPathPredicateIterator(XPathBaseIterator iterator, Expression predicate) : base(iterator) { this.iterator = iterator; this.predicate = predicate; this.resultType = predicate.ReturnType; }
public XPathUnionIterator(XPathBaseIterator iterator, XPathBaseIterator left, XPathBaseIterator right) : base(iterator) { this.left = left; this.right = right; this.current = null; }
public XPathPrecedingSiblingIterator(XPathBaseIterator iterator) : base(iterator) { start = iterator.Current.Clone(); if (start.NodeType == XPathNodeType.Attribute || start.NodeType == XPathNodeType.Namespace) { finished = true; } navigator.MoveToFirst(); }
public override bool MoveNext() { //TODO: depth first traversal - fix when doing Evaluate while (rhs == null || !rhs.MoveNext()) { if (!lhs.MoveNext()) { return(false); } rhs = (XPathBaseIterator)expr.Evaluate(lhs); } pos++; // We have already done an rhs.MoveNext() return(true); }
public XPathAttributeIterator (XPathBaseIterator iterator) : base (iterator) { }
public XPathPrecedingIterator(XPathBaseIterator iterator) : base(iterator) { /* remember where we started from and go up the tree */ start = iterator.Current.Clone(); this.navigator.MoveToRoot(); }
public XPathSlashIterator(XPathSlashIterator copy) : base(copy) { this.lhs = (XPathBaseIterator) copy.lhs.Clone(); this.expr = copy.expr; }
public XPathAttributeIterator(XPathBaseIterator iterator) : base(iterator) { }
public XPathFollowingSiblingIterator (XPathBaseIterator iterator) : base (iterator) { }
public XPathPrecedingIterator (XPathBaseIterator iterator) : base (iterator) { /* remember where we started from and go up the tree */ start = iterator.Current.Clone(); this.navigator.MoveToRoot(); }
public XPathBaseIterator (XPathBaseIterator parent) { this.nsManager = parent.nsManager; }
public XPathSlashIterator(XPathSlashIterator copy) : base(copy) { this.lhs = (XPathBaseIterator)copy.lhs.Clone(); this.expr = copy.expr; }
public XPathSlashIterator(XPathBaseIterator lhs, Expression expr) : base(lhs) { this.lhs = lhs; this.expr = expr; }
public XPathBaseIterator(XPathBaseIterator parent) { this.nsManager = parent.nsManager; }
public XPathNamespaceIterator(XPathBaseIterator iterator) : base(iterator) { }
public XPathFollowingSiblingIterator(XPathBaseIterator iterator) : base(iterator) { }
public XPathAncestorOrSelfIterator (XPathBaseIterator iterator) : base (iterator) { }
public XPathParentIterator(XPathBaseIterator iterator) : base(iterator) { }
public XPathParentIterator (XPathBaseIterator iterator) : base (iterator) { }
public XPathAncestorOrSelfIterator(XPathBaseIterator iterator) : base(iterator) { }
public XPathDescendantOrSelfIterator (XPathBaseIterator iterator) : base (iterator) { }
public XPathPredicateIterator(XPathBaseIterator iterator, Expression predicate) : base (iterator) { this.iterator = iterator; this.predicate = predicate; this.resultType = predicate.ReturnType; }
public XPathPrecedingSiblingIterator (XPathBaseIterator iterator) : base (iterator) { start = iterator.Current.Clone(); if(start.NodeType == XPathNodeType.Attribute || start.NodeType == XPathNodeType.Namespace) { finished = true; } navigator.MoveToFirst(); }
public XPathUnionIterator(XPathBaseIterator iterator, XPathBaseIterator left, XPathBaseIterator right) : base(iterator) { this.left = left; this.right = right; this.current = null; }
public XPathNamespaceIterator (XPathBaseIterator iterator) : base (iterator) { }
public XPathChildIterator(XPathBaseIterator iterator) : base(iterator) { }
public XPathSlashIterator (XPathBaseIterator lhs, Expression expr) : base(lhs) { this.lhs = lhs; this.expr = expr; }
public XPathChildIterator (XPathBaseIterator iterator) : base (iterator) { }
public override bool MoveNext() { //TODO: depth first traversal - fix when doing Evaluate while(rhs == null || !rhs.MoveNext()) { if(!lhs.MoveNext()) { return false; } rhs = (XPathBaseIterator)expr.Evaluate(lhs); } pos++; // We have already done an rhs.MoveNext() return true; }
public XPathDescendantOrSelfIterator(XPathBaseIterator iterator) : base(iterator) { }
public XPathPredicateIterator(XPathPredicateIterator copy) : base(copy) { this.iterator = (XPathBaseIterator) copy.iterator.Clone(); this.predicate = copy.predicate; this.resultType = copy.resultType; this.pos = copy.pos; }
public XPathSelfIterator(XPathBaseIterator parent) : base(parent) { }
/* caveat: the base ctor gets the useless parent arg */ public XPathUnionIterator(XPathUnionIterator copy) : base(copy.parent) { this.left = (XPathBaseIterator)copy.left.Clone(); this.right = (XPathBaseIterator)copy.right.Clone(); this.moveRight = copy.moveRight; this.moveLeft = copy.moveLeft; }
public XPathSelfIterator(XPathBaseIterator parent) : base(parent) { }