コード例 #1
0
    private GxRpAsNode Pop()
    {
        GxRpAsNode data   = this.m_pStack.data;
        GxRasStack pStack = this.m_pStack;

        this.m_pStack = pStack.next;
        return(data);
    }
コード例 #2
0
 private void Push(ref GxRpAsNode node)
 {
     if (this.m_pStack == null)
     {
         this.m_pStack      = new GxRasStack();
         this.m_pStack.data = node;
         this.m_pStack.next = null;
     }
     else
     {
         this.m_pStack = new GxRasStack
         {
             data = node,
             next = this.m_pStack
         };
     }
 }