亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? orderedset.cs

?? C#寫的類似于STL的集合類,首先是C#編寫,可以用于.net變程.
?? CS
?? 第 1 頁 / 共 5 頁
字號:
        /// </summary>
        /// <param name="otherSet">OrderedSet to compare to.</param>
        /// <returns>True if this is a superset of <paramref name="otherSet"/>.</returns>
        /// <exception cref="InvalidOperationException">This set and <paramref name="otherSet"/> don't use the same method for comparing items.</exception>
        public bool IsSupersetOf(OrderedSet<T> otherSet)
        {
            CheckConsistentComparison(otherSet);

            if (otherSet.Count > this.Count)
                return false;     // Can't be a superset of a bigger set

            // Check each item in the other set to make sure it is in this set.
            foreach (T item in otherSet) {
                if (!this.Contains(item))
                    return false;
            }

            return true;
        }

        /// <summary>
        /// Determines if this set is a proper superset of another set. Neither set is modified.
        /// This set is a proper superset of <paramref name="otherSet"/> if every element in
        /// <paramref name="otherSet"/> is also in this set.
        /// Additionally, this set must have strictly more items than <paramref name="otherSet"/>.
        /// </summary>
        /// <remarks>IsProperSupersetOf is computed in time O(M log N), where M is the number of unique items in 
        /// <paramref name="otherSet"/>.</remarks>
        /// <param name="otherSet">OrderedSet to compare to.</param>
        /// <returns>True if this is a proper superset of <paramref name="otherSet"/>.</returns>
        /// <exception cref="InvalidOperationException">This set and <paramref name="otherSet"/> don't use the same method for comparing items.</exception>
        public bool IsProperSupersetOf(OrderedSet<T> otherSet)
        {
            CheckConsistentComparison(otherSet);

            if (otherSet.Count >= this.Count)
                return false;     // Can't be a proper superset of a bigger or equal set

            return IsSupersetOf(otherSet);
        }

        /// <summary>
        /// Determines if this set is a subset of another set. Neither set is modified.
        /// This set is a subset of <paramref name="otherSet"/> if every element in this set
        /// is also in <paramref name="otherSet"/>.
        /// </summary>
        /// <remarks>IsSubsetOf is computed in time O(N log M), where M is the size of the 
        /// <paramref name="otherSet"/>, and N is the size of the this set.</remarks>
        /// <param name="otherSet">Set to compare to.</param>
        /// <returns>True if this is a subset of <paramref name="otherSet"/>.</returns>
        /// <exception cref="InvalidOperationException">This set and <paramref name="otherSet"/> don't use the same method for comparing items.</exception>
        public bool IsSubsetOf(OrderedSet<T> otherSet)
        {
            return otherSet.IsSupersetOf(this);
        }


        /// <summary>
        /// Determines if this set is a proper subset of another set. Neither set is modified.
        /// This set is a subset of <paramref name="otherSet"/> if every element in this set
        /// is also in <paramref name="otherSet"/>. Additionally, this set must have strictly 
        /// fewer items than <paramref name="otherSet"/>.
        /// </summary>
        /// <remarks>IsSubsetOf is computed in time O(N log M), where M is the size of the 
        /// <paramref name="otherSet"/>, and N is the size of the this set.</remarks>
        /// <param name="otherSet">Set to compare to.</param>
        /// <returns>True if this is a proper subset of <paramref name="otherSet"/>.</returns>
        /// <exception cref="InvalidOperationException">This set and <paramref name="otherSet"/> don't use the same method for comparing items.</exception>
        public bool IsProperSubsetOf(OrderedSet<T> otherSet)
        {
            return otherSet.IsProperSupersetOf(this);
        }

        /// <summary>
        /// Determines if this set is equal to another set. This set is equal to
        /// <paramref name="otherSet"/> if they contain the same items.
        /// </summary>
        /// <remarks>IsEqualTo is computed in time O(N), where N is the number of items in 
        /// this set.</remarks>
        /// <param name="otherSet">Set to compare to</param>
        /// <returns>True if this set is equal to <paramref name="otherSet"/>, false otherwise.</returns>
        /// <exception cref="InvalidOperationException">This set and <paramref name="otherSet"/> don't use the same method for comparing items.</exception>
        public bool IsEqualTo(OrderedSet<T> otherSet)
        {
            CheckConsistentComparison(otherSet);

            // Must be the same size.
            if (otherSet.Count != this.Count)
                return false;

            // Since both sets are ordered, we can simply compare items in order.
            using (IEnumerator<T> enum1 = this.GetEnumerator(), enum2 = otherSet.GetEnumerator()) {
                bool continue1, continue2;

                for (; ; ) {
                    continue1 = enum1.MoveNext(); continue2 = enum2.MoveNext();
                    if (!continue1 || !continue2)
                        break;

                    if (comparer.Compare(enum1.Current, enum2.Current) != 0)
                        return false;     // the two items are not equal.
                }

                // If both continue1 and continue2 are false, we reached the end of both sequences at the same
                // time and found success. If one is true and one is false, the sequences were of difference lengths -- failure.
                return (continue1 == continue2);
            }
        }

        /// <summary>
        /// Computes the union of this set with another set. The union of two sets
        /// is all items that appear in either or both of the sets. This set receives
        /// the union of the two sets, the other set is unchanged.
        /// </summary>
        /// <remarks>
        /// <para>If equal items appear in both sets, the union will include an arbitrary choice of one of the
        /// two equal items.</para>
        /// <para>The union of two sets is computed in time O(M + N log M), where M is the size of the 
        /// larger set, and N is the size of the smaller set.</para>
        /// </remarks>
        /// <param name="otherSet">Set to union with.</param>
        /// <exception cref="InvalidOperationException">This set and <paramref name="otherSet"/> don't use the same method for comparing items.</exception>
        public void UnionWith(OrderedSet<T> otherSet)
        {
            CheckConsistentComparison(otherSet);

            AddMany(otherSet);

            // CONSIDER: if RedBlackTree cloning is O(N), then if otherSet is much larger, better to clone it,
            // add all of the current into it, and replace.
        }

        /// <summary>
        /// Determines if this set is disjoint from another set. Two sets are disjoint
        /// if no item from one set is equal to any item in the other set.
        /// </summary>
        /// <remarks>
        /// <para>The answer is computed in time O(N log M), where M is the size of the 
        /// larger set, and N is the size of the smaller set.</para>
        /// </remarks>
        /// <param name="otherSet">Set to check disjointness with.</param>
        /// <returns>True if the two sets are disjoint, false otherwise.</returns>
        /// <exception cref="InvalidOperationException">This set and <paramref name="otherSet"/> don't use the same method for comparing items.</exception>
        public bool IsDisjointFrom(OrderedSet<T> otherSet)
        {
            CheckConsistentComparison(otherSet);
            OrderedSet<T> smaller, larger;
            if (otherSet.Count > this.Count) {
                smaller = this; larger = otherSet;
            }
            else {
                smaller = otherSet; larger = this;
            }

            foreach (T item in smaller) {
                if (larger.Contains(item))
                    return false;
            }

            return true;
        }

        /// <summary>
        /// Computes the union of this set with another set. The union of two sets
        /// is all items that appear in either or both of the sets. A new set is 
        /// created with the union of the sets and is returned. This set and the other set 
        /// are unchanged.
        /// </summary>
        /// <remarks>
        /// <para>If equal items appear in both sets, the union will include an arbitrary choice of one of the
        /// two equal items.</para>
        /// <para>The union of two sets is computed in time O(M + N log M), where M is the size of the 
        /// larger set, and N is the size of the smaller set.</para>
        /// </remarks>
        /// <param name="otherSet">Set to union with.</param>
        /// <returns>The union of the two sets.</returns>
        /// <exception cref="InvalidOperationException">This set and <paramref name="otherSet"/> don't use the same method for comparing items.</exception>
        public OrderedSet<T> Union(OrderedSet<T> otherSet)
        {
            CheckConsistentComparison(otherSet);
            OrderedSet<T> smaller, larger, result;
            if (otherSet.Count > this.Count) {
                smaller = this; larger = otherSet;
            }
            else {
                smaller = otherSet; larger = this;
            }

            result = larger.Clone();
            result.AddMany(smaller);
            return result;
        }

        /// <summary>
        /// Computes the intersection of this set with another set. The intersection of two sets
        /// is all items that appear in both of the sets. This set receives
        /// the intersection of the two sets, the other set is unchanged.
        /// </summary>
        /// <remarks>
        /// <para>When equal items appear in both sets, the intersection will include an arbitrary choice of one of the
        /// two equal items.</para>
        /// <para>The intersection of two sets is computed in time O(N log M), where M is the size of the 
        /// larger set, and N is the size of the smaller set.</para>
        /// </remarks>
        /// <param name="otherSet">Set to intersection with.</param>
        /// <exception cref="InvalidOperationException">This set and <paramref name="otherSet"/> don't use the same method for comparing items.</exception>
        public void IntersectionWith(OrderedSet<T> otherSet)
        {
            CheckConsistentComparison(otherSet);
            tree.StopEnumerations();

            OrderedSet<T> smaller, larger;
            if (otherSet.Count > this.Count) {
                smaller = this; larger = otherSet;
            }
            else {
                smaller = otherSet; larger = this;
            }

            T dummy;
            RedBlackTree<T> newTree = new RedBlackTree<T>(comparer);

            foreach (T item in smaller) {
                if (larger.Contains(item))
                    newTree.Insert(item, DuplicatePolicy.ReplaceFirst, out dummy);
            }

            tree = newTree;
        }

        /// <summary>
        /// Computes the intersection of this set with another set. The intersection of two sets
        /// is all items that appear in both of the sets. A new set is 
        /// created with the intersection of the sets and is returned. This set and the other set 
        /// are unchanged.
        /// </summary>
        /// <remarks>
        /// <para>When equal items appear in both sets, the intersection will include an arbitrary choice of one of the
        /// two equal items.</para>
        /// <para>The intersection of two sets is computed in time O(N log M), where M is the size of the 
        /// larger set, and N is the size of the smaller set.</para>
        /// </remarks>
        /// <param name="otherSet">Set to intersection with.</param>
        /// <returns>The intersection of the two sets.</returns>
        /// <exception cref="InvalidOperationException">This set and <paramref name="otherSet"/> don't use the same method for comparing items.</exception>
        public OrderedSet<T> Intersection(OrderedSet<T> otherSet)
        {
            CheckConsistentComparison(otherSet);
            OrderedSet<T> smaller, larger, result;
            if (otherSet.Count > this.Count) {
                smaller = this; larger = otherSet;
            }
            else {
                smaller = otherSet; larger = this;
            }

            result = new OrderedSet<T>(comparer);
            foreach (T item in smaller) {
                if (larger.Contains(item))
                    result.Add(item);
            }

            return result;
        }

        /// <summary>
        /// Computes the difference of this set with another set. The difference of these two sets
        /// is all items that appear in this set, but not in <paramref name="otherSet"/>. This set receives
        /// the difference of the two sets; the other set is unchanged.
        /// </summary>
        /// <remarks>
        /// <para>The difference of two sets is computed in time O(M + N log M), where M is the size of the 
        /// larger set, and N is the size of the smaller set.</para>
        /// </remarks>
        /// <param name="otherSet">Set to difference with.</param>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青青草伊人久久| 国产精品亚洲а∨天堂免在线| 天涯成人国产亚洲精品一区av| 免费成人av资源网| eeuss鲁片一区二区三区| 欧美丰满少妇xxxbbb| 亚洲欧洲国产日本综合| 男女男精品网站| 欧美性高清videossexo| 日本一二三不卡| 国产一区二区在线免费观看| 911精品国产一区二区在线| 亚洲三级电影网站| 99久久精品免费看国产免费软件| 欧美大片一区二区三区| 亚洲国产日韩一级| 色婷婷精品久久二区二区蜜臂av | 国产在线精品不卡| 欧美高清hd18日本| 亚洲一区av在线| 色偷偷久久一区二区三区| 国产欧美日韩卡一| 国产高清不卡二三区| 精品国产一区二区三区久久影院| 天堂在线一区二区| 欧美自拍偷拍一区| 夜夜亚洲天天久久| 在线视频欧美区| 一区二区三区在线观看欧美| 99国产精品国产精品久久| 中文字幕av不卡| 成人综合在线视频| 国产精品沙发午睡系列990531| 激情成人综合网| 日韩一级黄色大片| 久久精品国产久精国产爱| 精品理论电影在线观看 | 国产a视频精品免费观看| 欧美大片顶级少妇| 国产一区二区精品久久99| 日本一区二区三区高清不卡| 不卡的av在线| 亚洲精品国产高清久久伦理二区| 在线精品视频一区二区| 亚洲777理论| 日韩美女一区二区三区四区| 国产一区二区三区蝌蚪| 国产嫩草影院久久久久| 99天天综合性| 亚洲成人在线观看视频| 欧美哺乳videos| 粉嫩在线一区二区三区视频| 一区二区三区在线视频观看58| 欧美猛男超大videosgay| 日本在线不卡一区| 久久久久久黄色| 99久久精品免费精品国产| 亚洲国产精品麻豆| 欧美日韩综合不卡| 6080yy午夜一二三区久久| 欧美色男人天堂| 欧美乱妇15p| 欧美成人国产一区二区| 国产精品不卡视频| 日韩vs国产vs欧美| 国产不卡在线视频| 欧美日韩第一区日日骚| 久久久久久久久久久久久女国产乱| 日韩午夜三级在线| 亚洲女性喷水在线观看一区| 欧美性淫爽ww久久久久无| 精品一区二区三区免费毛片爱| 国产欧美日韩三级| 欧美日韩在线播放一区| 国产精品亚洲一区二区三区妖精| 亚洲精品成a人| 久久午夜电影网| 在线观看日韩国产| 国产91在线|亚洲| 日本不卡的三区四区五区| 中文字幕在线一区| 亚洲精品一区二区三区99| 欧美色倩网站大全免费| 丁香婷婷综合激情五月色| 婷婷成人综合网| 亚洲精品ww久久久久久p站 | 国产suv精品一区二区三区| 亚洲国产欧美一区二区三区丁香婷| 久久先锋影音av鲁色资源| 欧美亚一区二区| 成人动漫中文字幕| 久久99蜜桃精品| 亚洲动漫第一页| 亚洲人成伊人成综合网小说| 久久精品日产第一区二区三区高清版 | 欧美视频一区二| 91丨九色丨尤物| 国产精品自拍网站| 看电视剧不卡顿的网站| 日韩和欧美一区二区三区| 一区二区三区.www| 国产精品初高中害羞小美女文| 久久婷婷成人综合色| 日韩视频免费观看高清完整版| 欧美在线观看你懂的| 99九九99九九九视频精品| 成人免费视频免费观看| 国产精品亚洲а∨天堂免在线| 青青草伊人久久| 日本aⅴ精品一区二区三区| 午夜精品一区二区三区免费视频| 一区二区三区日韩| 亚洲主播在线播放| 亚洲一区二区三区视频在线| 亚洲福利视频三区| 丝袜亚洲另类欧美| 日本午夜一本久久久综合| 日日欢夜夜爽一区| 日本免费新一区视频| 美洲天堂一区二卡三卡四卡视频| 日本网站在线观看一区二区三区 | 亚洲精品成人精品456| 夜夜精品视频一区二区| 亚洲综合激情网| 日韩精品亚洲一区二区三区免费| 视频一区国产视频| 开心九九激情九九欧美日韩精美视频电影| 免费xxxx性欧美18vr| 国产在线一区二区| 成人免费电影视频| 欧美午夜不卡视频| 91精品国产综合久久精品app| 欧美大片国产精品| 中文欧美字幕免费| 亚洲网友自拍偷拍| 日本中文字幕一区二区有限公司| 国产一区二区成人久久免费影院| 国产福利91精品| 一本大道av伊人久久综合| 欧美性视频一区二区三区| 欧美一级片在线观看| 久久久久久久久99精品| 一级精品视频在线观看宜春院| 免费人成网站在线观看欧美高清| 国产在线日韩欧美| 9久草视频在线视频精品| 欧美日韩中文另类| 久久久精品国产免费观看同学| 日韩理论片在线| 麻豆久久久久久久| 色噜噜狠狠一区二区三区果冻| 欧美电影一区二区| 国产精品丝袜在线| 午夜精品久久久久久久久| 国产精品亚洲一区二区三区在线| 色婷婷久久久综合中文字幕| 精品捆绑美女sm三区| 亚洲综合男人的天堂| 国产一区二区三区不卡在线观看| 日本精品一级二级| 国产喂奶挤奶一区二区三区| 亚洲国产综合色| 国产宾馆实践打屁股91| 在线播放中文字幕一区| 亚洲欧洲日产国产综合网| 久久精品国产成人一区二区三区| 在线免费亚洲电影| 中文字幕乱码日本亚洲一区二区 | 在线看日韩精品电影| 国产清纯白嫩初高生在线观看91| 亚洲动漫第一页| 色综合久久综合| 中文字幕高清一区| 久久99精品国产| 日韩欧美色综合网站| 亚洲一区在线观看免费观看电影高清 | 久久精品亚洲精品国产欧美| 亚洲成av人综合在线观看| 97精品视频在线观看自产线路二| 精品国产免费久久| 日本三级亚洲精品| 欧美人与性动xxxx| 一区二区三区免费看视频| www.亚洲激情.com| 欧美国产精品中文字幕| 国产在线精品国自产拍免费| 欧美一级国产精品| 麻豆精品国产传媒mv男同 | 日本在线不卡视频| 91.xcao| 日韩制服丝袜av| 欧美日韩在线一区二区| 亚洲综合自拍偷拍| 色婷婷久久99综合精品jk白丝| 亚洲免费观看高清在线观看| 91视频在线观看| 亚洲伦在线观看| 欧美在线综合视频| 亚洲国产综合91精品麻豆| 欧美午夜精品理论片a级按摩|