Ejemplo n.º 1
0
        public virtual object haxe_ds_GenericStack_cast <T_c>()
        {
                        #line 101 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c)))
            {
                                #line 101 "/opt/haxe/std/haxe/ds/GenericStack.hx"
                return(this);
            }

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

                        #line 101 "/opt/haxe/std/haxe/ds/GenericStack.hx"
            return(new_me);
        }
Ejemplo n.º 2
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;
         }
     }
 }
Ejemplo n.º 3
0
        public virtual object haxe_ds_GenericStack_cast <T_c>()
        {
            if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c)))
            {
                return(this);
            }

            global::haxe.ds.GenericStack <T_c> new_me = new global::haxe.ds.GenericStack <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);
        }
Ejemplo n.º 4
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked {
                switch (hash)
                {
                case 2146610825:
                {
                    this._stack = ((global::haxe.ds.GenericStack <object>)(global::haxe.ds.GenericStack <object> .__hx_cast <object>(((global::haxe.ds.GenericStack)(@value)))));
                    return(@value);
                }


                case 1072540152:
                {
                    this._relations = ((global::haxe.ds.ObjectMap <object, object>)(global::haxe.ds.ObjectMap <object, object> .__hx_cast <object, object>(((global::haxe.ds.ObjectMap)(@value)))));
                    return(@value);
                }


                case 463863666:
                {
                    this._nodes = ((global::haxe.ds.IntMap <object>)(global::haxe.ds.IntMap <object> .__hx_cast <object>(((global::haxe.ds.IntMap)(@value)))));
                    return(@value);
                }


                case 1946631881:
                {
                    this.graphId = global::haxe.lang.Runtime.toString(@value);
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Ejemplo n.º 5
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);
                }
            }
        }
Ejemplo n.º 6
0
 public virtual void AddToExecutionStack(global::graph.EndPoint endpoint)
 {
     global::haxe.ds.GenericStack <object> _this = this._stack;
     _this.head = new global::haxe.ds.GenericCell <object>(endpoint, _this.head);
 }
Ejemplo n.º 7
0
 public static object __hx_cast <T_c_c>(global::haxe.ds.GenericStack me)
 {
     return(((me != null)) ? (me.haxe_ds_GenericStack_cast <T_c_c>()) : default(object));
 }
Ejemplo n.º 8
0
 public static void __hx_ctor_haxe_ds_GenericStack <T_c>(global::haxe.ds.GenericStack <T_c> __hx_this)
 {
 }
Ejemplo n.º 9
0
 public static object __hx_cast <T_c_c>(global::haxe.ds.GenericStack me)
 {
                 #line 101 "/opt/haxe/std/haxe/ds/GenericStack.hx"
     return(((me != null)) ? (me.haxe_ds_GenericStack_cast <T_c_c>()) : default(object));
 }