internal ConstraintStruct(CompiledIdentityConstraint constraint) { this.constraint = constraint; this.tableDim = constraint.Fields.Length; this.constraintTable = new ArrayList(); // empty table this.currentRow = 0; this.axisFields = new ArrayList(); // empty fields this.axisSelector = new ActiveAxis(constraint.Selector); this.qualifiedTable = new Hashtable(); }
public AxisStack(ForwardAxis faxis, ActiveAxis parent) { this.subtree = faxis; this.stack = new ArrayList(); this.parent = parent; if (!faxis.IsDss) { this.Push(1); } }
// instructor public AxisStack(ForwardAxis faxis, ActiveAxis parent) { _subtree = faxis; _stack = new ArrayList(); _parent = parent; // need to use its contextdepth each time.... // improvement: // if ! isDss, there has nothing to do with Push/Pop, only one copy each time will be kept // if isDss, push and pop each time.... if (!faxis.IsDss) { // keep an instance this.Push(1); // context depth + 1 } // else just keep stack empty }