Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MemoryStack{T}"/> class.
        /// </summary>
        /// <param name="oldStack">The old stack.</param>
        public MemoryStack(MemoryStack <T> oldStack)
        {
            localIndex = oldStack.Length - 1;

            stack = new T[oldStack.Length];
            copy(oldStack.stack, this.stack, oldStack.Length);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MemoryStack{T}"/> class.
        /// </summary>
        /// <param name="oldStack">The old stack.</param>
        /// <param name="local">The local.</param>
        public MemoryStack(MemoryStack <T> oldStack, T local)
        {
            localIndex = oldStack.Length;

            stack = new T[oldStack.Length + 1];
            copy(oldStack.stack, this.stack, oldStack.Length);

            stack[oldStack.Length] = local;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VariableStack"/> class.
 /// </summary>
 /// <param name="oldStack">The old stack.</param>
 /// <param name="local">The local.</param>
 public VariableStack(MemoryStack <IndexContainer> oldStack, IndexContainer local)
     : base(oldStack, local)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VariableStack"/> class.
 /// </summary>
 /// <param name="oldStack">The old stack.</param>
 public VariableStack(MemoryStack <IndexContainer> oldStack)
     : base(oldStack)
 {
 }