예제 #1
0
 // -------------------------------------------------------------------
 // Public
 // -------------------------------------------------------------------
 public ObjectSetIterator(ObjectSet <T> set)
 {
     this.set = set;
 }
예제 #2
0
        // -------------------------------------------------------------------
        // Constructor
        // -------------------------------------------------------------------

        /// <summary>
        /// Creates a <see cref="PriorityQueue{T}"/> with the specified initial capacity that orders its elements according to their
        /// <see cref="IComparable"/>
        /// </summary>
        /// <param name="initialCapacity"></param>
        public PriorityQueue(int initialCapacity = DefaultInitialCapacity)
        {
            this.queue = new T[initialCapacity];
            this.set   = new ObjectSet <T>(initialCapacity);
        }