Пример #1
0
 public TNodeMatrixAssign(TNode Parent, Heap<CellMatrix> Heap, int Ref, MNode Expression)
     : base(Parent)
 {
     this._expression = Expression;
     this._ref = Ref;
     this._mat = Heap;
 }
Пример #2
0
 public TNode(TNode Parent, MemoryStruct Heap)
 {
     this._Parent = Parent;
     this._Children = new List<TNode>();
     this._Heap = Heap;
     this._reg = null;
 }
Пример #3
0
 public TNodeExecute(TNode Parent, HScriptProcessor UseScripter, Dictionary<string, FNode> UseBindings, string UseScript)
     : base(Parent)
 {
     this._nodes = UseBindings;
     this._scripter = UseScripter;
     this._script = UseScript;
 }
Пример #4
0
 public void Add(TNode Node)
 {
     this._tree.Add(Node);
     if (Node is TNodeAppendTo)
     {
         this._ReturnRefs.Add(this._tree.Count - 1);
     }
 }
Пример #5
0
 public TNodeFor(TNode Parent, int Begin, int End, MemoryStruct Heap, int CellPointer)
     : base(Parent)
 {
     this._Begin = Begin;
     this._End = End;
     this._Heap = Heap;
     this._ptrControll = CellPointer;
 }
Пример #6
0
        private int _AssignID; // 0 == assign, 1 == increment, 2 == decrement, 3 == auto increment, 4 == auto decrement

        /// <summary>
        /// Create an assignment action
        /// </summary>
        /// <param name="Parent">Parent node</param>
        /// <param name="Heap">The memory heap to work off of</param>
        /// <param name="Index">The direct location of the variable in the heap</param>
        /// <param name="Map">The expression to assign to</param>
        /// <param name="AssignID">0 == assign, 1 == increment, 2 == decrement, 3 == auto increment, 4 == auto decrement</param>
        public TNodeAssignScalar(TNode Parent, MemoryStruct Heap, int Index, FNode Map, int AssignID)
            : base(Parent)
        {
            this._Heap = Heap;
            this._Mapping = Map;
            this._Index = Index;
            this._AssignID = AssignID;
        }
Пример #7
0
        private int _AssignID; // 0 == assign, 1 == increment, 2 == decrement, 3 == auto increment, 4 == auto decrement

        public TNodeMatrixUnitAssign(TNode Parent, CellMatrix Data, FNode Node, FNode RowID, FNode ColumnID, int AssignID)
            : base(Parent)
        {
            this._matrix = Data;
            this._Node = Node;
            this._AssignID = AssignID;
            this._row_id = RowID;
            this._col_id = ColumnID;
        }
Пример #8
0
 public TNodeFileReadString(TNode Parent, string Path, CellHeap Memory, int HeapRef)
     : base(Parent)
 {
     this._path = Path;
     this._stream = new StreamReader(Path);
     this._heap = Memory;
     this._ref = HeapRef;
     this.SupportsMapReduce = false;
 }
Пример #9
0
 public TNodeFileReadBLOB(TNode Parent, string Path, CellHeap Memory, int HeapRef, int Len)
     : base(Parent)
 {
     this._path = Path;
     this._stream = File.Open(Path, FileMode.Open, FileAccess.Read);
     this._heap = Memory;
     this._ref = HeapRef;
     this._len = Len;
     this.SupportsMapReduce = false;
 }
Пример #10
0
        public TNodeAppendTo(TNode Parent, RecordWriter Writer, FNodeSet Output)
            : base(Parent)
        {

            // Check that the column count is the same; we dont care about the schema //
            if (Writer.SourceSchema.Count != Output.Count)
                throw new Exception("Attempting to write a different number of recors to a stream");

            this._writer = Writer;
            this._output = Output;

        }
Пример #11
0
        public TNodeAppendToChunkAsync(TNode Parent, RecordSet UseParentData, FNodeSet UseFields)
            : base(Parent)
        {

            if (UseParentData.Columns.GetHashCode() != UseFields.Columns.GetHashCode())
                throw new Exception("Output table and fields passed are not compatible");

            this._ParentData = UseParentData;
            this._RecordCache = new RecordSet(UseParentData.Columns);
            this._Fields = UseFields;

        }
Пример #12
0
 public TNodePrintMatrix(TNode Parent, MNode Expression)
     : base(Parent)
 {
     this._expression = Expression;
 }
Пример #13
0
 public TNodeProcedure(TNode Parent, Procedure Proc, HParameterSet Parameters)
     : base(Parent)
 {
     this._proc = Proc;
     this._parameters = Parameters;
 }
Пример #14
0
 public TNodePrint(TNode Parent, Workspace Home, FNodeSet Expressions)
     : base(Parent)
 {
     this._expressions = Expressions;
     this._home = Home;
 }
Пример #15
0
        /// <summary>
        /// Adds a child node
        /// </summary>
        /// <param name="Node">A single child node to add to the current node</param>
        public void AddChild(TNode Node)
        {
            if (Node.MustBeLonely)
                throw new Exception("This node cannot be an element of a tree");

            Node._Parent = this;
            this._Children.Add(Node);
        }
Пример #16
0
 public TNodeWhile(TNode Parent, FNode ControlFlow)
     : base(Parent)
 {
     this._control = ControlFlow;
 }
Пример #17
0
 public TNodeEscapeLoop(TNode Parent)
     : base(Parent)
 {
 }
Пример #18
0
 public TNode(TNode Parent)
     : this(Parent, new MemoryStruct(true))
 {
 }
Пример #19
0
 public TNodeBeginEnd(TNode Parent)
     : base(Parent)
 {
 }
Пример #20
0
 public TNodeGeneric(TNode Parent, Action Delegate)
     : base(Parent)
 {
     this._delegate = Delegate;
 }
Пример #21
0
 public TNodeEscapeRead(TNode Parent)
     : base(Parent)
 {
 }
Пример #22
0
 public TNodeNothing(TNode Parent)
     : base(Parent)
 {
 }
Пример #23
0
 public TNodeIf(TNode Parent, Predicate Condition)
     : base(Parent)
 {
     this._Condition = Condition;
 }