Exemplo n.º 1
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked {
                switch (hash)
                {
                case 1224901875:
                {
                    this.next = ((global::haxe.ds.GenericCell <T>)(global::haxe.ds.GenericCell <object> .__hx_cast <T>(((global::haxe.ds.GenericCell)(@value)))));
                    return(@value);
                }


                case 5046829:
                {
                    this.elt = global::haxe.lang.Runtime.genericCast <T>(@value);
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Exemplo n.º 2
0
        public virtual object haxe_ds_GenericCell_cast <T_c>()
        {
                        #line 33 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c)))
            {
                                #line 33 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                return(this);
            }

                        #line 33 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            global::haxe.ds.GenericCell <T_c> new_me = new global::haxe.ds.GenericCell <T_c>(global::haxe.lang.EmptyObject.EMPTY);
                        #line 33 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            global::Array <string> fields = global::Reflect.fields(this);
                        #line 33 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            int i = 0;
                        #line 33 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            while ((i < fields.length))
            {
                                #line 33 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                string field = fields[i++];
                                #line 33 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                global::Reflect.setField(new_me, field, global::Reflect.field(this, field));
            }

                        #line 33 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            return(new_me);
        }
Exemplo n.º 3
0
        public virtual bool @remove(T v)
        {
                        #line 157 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            global::haxe.ds.GenericCell <T> prev = null;
            global::haxe.ds.GenericCell <T> l    = this.head;
                        #line 159 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            while ((l != null))
            {
                                #line 160 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                if (global::haxe.lang.Runtime.eq(l.elt, v))
                {
                                        #line 161 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                    if ((prev == null))
                    {
                                                #line 162 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                        this.head = l.next;
                    }
                    else
                    {
                                                #line 164 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                        prev.next = l.next;
                    }

                                        #line 165 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                    break;
                }

                                #line 167 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                prev = l;
                l    = l.next;
            }

                        #line 170 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            return(l != null);
        }
Exemplo n.º 4
0
 public override object __hx_invoke0_o()
 {
                 #line 192 "/opt/haxe/std/haxe/ds/GenericStack.hx"
     global::haxe.ds.GenericCell <T> k = ((global::haxe.ds.GenericCell <T>)(this.l[0]));
     this.l[0] = k.next;
                 #line 194 "/opt/haxe/std/haxe/ds/GenericStack.hx"
     return(k.elt);
 }
Exemplo n.º 5
0
 public virtual object iterator()
 {
                 #line 186 "/opt/haxe/std/haxe/ds/GenericStack.hx"
     global::haxe.ds.GenericCell <T>[] l = new global::haxe.ds.GenericCell <T>[] { this.head };
     {
                         #line 188 "/opt/haxe/std/haxe/ds/GenericStack.hx"
         global::haxe.lang.Function __temp_odecl1 = new global::haxe.ds.GenericStack_iterator_188__Fun <T>(l);
                         #line 191 "/opt/haxe/std/haxe/ds/GenericStack.hx"
         global::haxe.lang.Function __temp_odecl2 = new global::haxe.ds.GenericStack_iterator_191__Fun <T>(l);
                         #line 187 "/opt/haxe/std/haxe/ds/GenericStack.hx"
         return(new global::haxe.lang.DynamicObject(new int[] { 407283053, 1224901875 }, new object[] { __temp_odecl1, __temp_odecl2 }, new int[] {}, new double[] {}));
     }
 }
Exemplo n.º 6
0
 public virtual void Clear()
 {
     while ((this._stack.head != null))
     {
         global::haxe.ds.GenericStack <object> _this = this._stack;
         global::haxe.ds.GenericCell <object>  k     = _this.head;
         if ((k == null))
         {
         }
         else
         {
             _this.head = k.next;
         }
     }
 }
Exemplo n.º 7
0
        public virtual string toString()
        {
                        #line 204 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            global::Array <T> a = new global::Array <T>();
            global::haxe.ds.GenericCell <T> l = this.head;
                        #line 206 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            while ((l != null))
            {
                                #line 207 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                a.push(l.elt);
                l = l.next;
            }

                        #line 210 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            return(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("{", a.@join(",")), "}"));
        }
Exemplo n.º 8
0
 public global::haxe.lang.Null <T> pop()
 {
                 #line 131 "/opt/haxe/std/haxe/ds/GenericStack.hx"
     global::haxe.ds.GenericCell <T> k = this.head;
     if ((k == null))
     {
                         #line 133 "/opt/haxe/std/haxe/ds/GenericStack.hx"
         return(default(global::haxe.lang.Null <T>));
     }
     else
     {
                         #line 135 "/opt/haxe/std/haxe/ds/GenericStack.hx"
         this.head = k.next;
         return(new global::haxe.lang.Null <T>(k.elt, true));
     }
 }
Exemplo n.º 9
0
        public virtual object haxe_ds_GenericCell_cast <T_c>()
        {
            if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c)))
            {
                return(this);
            }

            global::haxe.ds.GenericCell <T_c> new_me = new global::haxe.ds.GenericCell <T_c>(global::haxe.lang.EmptyObject.EMPTY);
            global::Array <object>            fields = global::Reflect.fields(this);
            int i = 0;

            while ((i < fields.length))
            {
                string field = global::haxe.lang.Runtime.toString(fields[i++]);
                global::Reflect.setField(new_me, field, global::Reflect.field(this, field));
            }

            return(new_me);
        }
Exemplo n.º 10
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked {
                switch (hash)
                {
                case 1158359328:
                {
                    this.head = ((global::haxe.ds.GenericCell <T>)(global::haxe.ds.GenericCell <object> .__hx_cast <T>(((global::haxe.ds.GenericCell)(@value)))));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Exemplo n.º 11
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked {
                                #line 101 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                switch (hash)
                {
                case 1158359328:
                {
                                                #line 101 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                    this.head = ((global::haxe.ds.GenericCell <T>)(global::haxe.ds.GenericCell <object> .__hx_cast <T>(((global::haxe.ds.GenericCell)(@value)))));
                                                #line 101 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                    return(@value);
                }


                default:
                {
                                                #line 101 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
                        #line default
        }
Exemplo n.º 12
0
        public virtual void Execute()
        {
            while ((this._stack.head != null))
            {
                global::haxe.ds.GenericStack <object> _this = this._stack;
                global::haxe.ds.GenericCell <object>  k     = _this.head;
                global::graph.EndPoint endpoint             = null;
                if ((k == null))
                {
                    endpoint = null;
                }
                else
                {
                    _this.head = k.next;
                    endpoint   = ((global::graph.EndPoint)(k.elt));
                }

                global::core.node.Node node = this.FindNode(endpoint.nodeId);
                if ((node != null))
                {
                    node.SignalInput(endpoint.slotId);
                }
            }
        }
Exemplo n.º 13
0
 public void @add(T item)
 {
                 #line 113 "/opt/haxe/std/haxe/ds/GenericStack.hx"
     this.head = new global::haxe.ds.GenericCell <T>(item, this.head);
 }
Exemplo n.º 14
0
 protected static void __hx_ctor_haxe_ds_GenericCell <T_c>(global::haxe.ds.GenericCell <T_c> __hx_this, T_c elt, global::haxe.ds.GenericCell <T_c> next)
 {
                 #line 38 "/opt/haxe/std/haxe/ds/GenericStack.hx"
     __hx_this.elt  = elt;
     __hx_this.next = next;
 }
Exemplo n.º 15
0
 public GenericCell(T elt, global::haxe.ds.GenericCell <T> next)
 {
     global::haxe.ds.GenericCell <object> .__hx_ctor_haxe_ds_GenericCell <T>(((global::haxe.ds.GenericCell <T>)(this)), global::haxe.lang.Runtime.genericCast <T>(elt), ((global::haxe.ds.GenericCell <T>)(next)));
 }
Exemplo n.º 16
0
 public static object __hx_cast <T_c_c>(global::haxe.ds.GenericCell me)
 {
                 #line 33 "/opt/haxe/std/haxe/ds/GenericStack.hx"
     return(((me != null)) ? (me.haxe_ds_GenericCell_cast <T_c_c>()) : default(object));
 }
Exemplo n.º 17
0
 public GenericCell(T elt, global::haxe.ds.GenericCell <T> next)
 {
                 #line 37 "/opt/haxe/std/haxe/ds/GenericStack.hx"
     global::haxe.ds.GenericCell <object> .__hx_ctor_haxe_ds_GenericCell <T>(((global::haxe.ds.GenericCell <T>)(this)), global::haxe.lang.Runtime.genericCast <T>(elt), ((global::haxe.ds.GenericCell <T>)(next)));
 }
Exemplo n.º 18
0
 public static void __hx_ctor_haxe_ds_GenericCell <T_c>(global::haxe.ds.GenericCell <T_c> __hx_this, T_c elt, global::haxe.ds.GenericCell <T_c> next)
 {
     __hx_this.elt  = elt;
     __hx_this.next = next;
 }
Exemplo n.º 19
0
 public static object __hx_cast <T_c_c>(global::haxe.ds.GenericCell me)
 {
     return(((me != null)) ? (me.haxe_ds_GenericCell_cast <T_c_c>()) : default(object));
 }