コード例 #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Constructs an object to find the list of minimal pairs within the specified cache.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public CIEBuilder(WordListCache cache, SortOptions sortOptions, CIEOptions cieOptions)
        {
            if (cache == null || cache.Count <= 2)
            {
                return;
            }

            Cache        = cache;
            CIEOptions   = cieOptions;
            _sortOptions = sortOptions.Copy();
            _sortOptions.AdvSortOrder = (CIEOptions.Type == CIEOptions.IdenticalType.After ?
                                         new[] { 2, 0, 1 } : new[] { 1, 0, 2 });
        }