コード例 #1
0
        public void TakeSnapShot(int p, int l, int r)
        {
            SortAlgorithmSnapShot shot = GetSnapShot();

            shot.SetPointer("p", p);
            shot.SetPointer("l", l);
            shot.SetPointer("r", r);
            Shots.Add(shot);
        }
コード例 #2
0
        public void TakeSnapShot()
        {
            SortAlgorithmSnapShot shot = GetSnapShot();

            shot.SetPointer("p", -1);
            shot.SetPointer("l", -1);
            shot.SetPointer("r", -1);
            Shots.Add(shot);
        }
コード例 #3
0
        public QuickSortSnapShotXML(SortAlgorithmSnapShot shot)
        {
            Data = new double[shot.Data.Length];
            shot.Data.CopyTo(Data, 0);

            Colors = new Color[3];
            Colors[0] = new Color("p", (int) shot.Pointers["p"], ColorConstants.Red);
            Colors[1] = new Color("l", (int) shot.Pointers["l"], ColorConstants.Blue);
            Colors[2] = new Color("r", (int) shot.Pointers["r"], ColorConstants.Blue);
        }
コード例 #4
0
        public QuickSortSnapShotXML(SortAlgorithmSnapShot shot)
        {
            Data = new double[shot.Data.Length];
            shot.Data.CopyTo(Data, 0);

            Colors    = new Color[3];
            Colors[0] = new Color("p", (int)shot.Pointers["p"], ColorConstants.Red);
            Colors[1] = new Color("l", (int)shot.Pointers["l"], ColorConstants.Blue);
            Colors[2] = new Color("r", (int)shot.Pointers["r"], ColorConstants.Blue);
        }
コード例 #5
0
ファイル: QuickSort.cs プロジェクト: migsbeast/homework
 public void SetSnapShot(SortAlgorithmSnapShot SnapShot)
 {
     SnapShot.SetData(Data);
 }
コード例 #6
0
 public void SetSnapShot(SortAlgorithmSnapShot SnapShot)
 {
     SnapShot.SetData(Data);
 }