Exemple #1
0
        /// <summary>
        /// 変換
        /// </summary>
        /// <returns></returns>
        public static List_OneAndMulti <Finger, SySet <SyElement> > SplitKey1And2(
            Maps_OneAndMultiAndMulti <Finger, New_Basho, SySet <SyElement> > komabetuMasubetuMasus
            )
        {
            List_OneAndMulti <Finger, SySet <SyElement> > result = new List_OneAndMulti <Finger, SySet <SyElement> >();

            komabetuMasubetuMasus.Foreach_Entry((Finger finger, New_Basho key2, SySet <SyElement> masus, ref bool toBreak) =>
            {
                result.AddNew(finger, masus);
            });

            return(result);
        }
Exemple #2
0
        public static string Dump(
            Maps_OneAndMultiAndMulti <Finger, New_Basho, SySet <SyElement> > komabetuMasubetuMasus
            )
        {
            StringBuilder sb = new StringBuilder();

            komabetuMasubetuMasus.Foreach_Entry((Finger key1, New_Basho key2, SySet <SyElement> value, ref bool toBreak) =>
            {
                foreach (BashoImpl masu3 in value.Elements)
                {
                    sb.AppendLine($"finger1=[{key1.ToString()}] masu2=[{key2.ToString()}] masu3=[{masu3.ToString()}]");
                }
            });

            return(sb.ToString());
        }
Exemple #3
0
        public static string LogString_Set(
            Maps_OneAndMultiAndMulti <Finger, New_Basho, SySet <SyElement> > komabetuMasubetuMasus
            )
        {
            StringBuilder sb = new StringBuilder();

            // 全要素
            komabetuMasubetuMasus.Foreach_Entry((Finger key1, New_Basho key2, SySet <SyElement> value, ref bool toBreak) =>
            {
                sb.AppendLine($"駒=[{key1.ToString()}]");
                sb.AppendLine($"升=[{key2.ToString()}]");
                sb.AppendLine(Util_Masus <New_Basho> .LogString_Concrete(value));
            });

            return(sb.ToString());
        }
Exemple #4
0
        public static string LogString_Concrete(
            Maps_OneAndMultiAndMulti <Finger, New_Basho, SySet <SyElement> > komabetuMasubetuMasus
            )
        {
            StringBuilder sb = new StringBuilder();


            komabetuMasubetuMasus.Foreach_Entry((Finger key1, New_Basho key2, SySet <SyElement> value, ref bool toBreak) =>
            {
                sb.Append("[駒");
                sb.Append(key1.ToString());
                sb.Append(" 升");
                sb.Append(key2.ToString());
                sb.Append("]");

                foreach (New_Basho masu in value.Elements)
                {
                    sb.Append(masu.ToString());
                }
            });


            return(sb.ToString());
        }
Exemple #5
0
 /// <summary>
 /// クローンを作ります。
 /// </summary>
 /// <param name="entries"></param>
 public Maps_OneAndMultiAndMulti(Maps_OneAndMultiAndMulti <T1, T2, T3> src)
 {
     this.items = src.items;
 }