Mercurial > hg > Database > jungle-sharp
diff src/test/csharp/jp.ac.u-ryukyu.ie.cr/junge-main/data/treemap/TreeMapDelete.cs @ 12:b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
author | Kazuma |
---|---|
date | Sun, 23 Oct 2016 12:25:57 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/test/csharp/jp.ac.u-ryukyu.ie.cr/junge-main/data/treemap/TreeMapDelete.cs Sun Oct 23 12:25:57 2016 +0900 @@ -0,0 +1,26 @@ +using UnityEngine; + +public class TreeMapDelete : MonoBehaviour { + + // Use this for initialization + void Start () { + TreeMap<int,int> map = new TreeMap<int, int> (); + for (int count = 1; count < 6; count++) { + map = map.put (count, count); + map.checkDepth (); + } + + // ただ消すための数字をここに入れているだけ + List<int> list = new List<int>(); + for (int count = 1; count < 6; count++) { + list = list.addLast (count); + } + + foreach(int num in list){ + Debug.Log(num); + map = map.delete(num); + map.checkDepth(); + } + Debug.Log ("end"); + } +}