Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public AxisStack(ForwardAxis faxis, ActiveAxis parent)
 {
     this.subtree = faxis;
     this.stack   = new ArrayList();
     this.parent  = parent;
     if (!faxis.IsDss)
     {
         this.Push(1);
     }
 }
Exemplo n.º 3
0
        // 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
        }