Mercurial > hg > Database > jungle-sharp
annotate 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 |
rev | line source |
---|---|
12
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
1 using UnityEngine; |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
2 |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
3 public class TreeMapDelete : MonoBehaviour { |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
4 |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
5 // Use this for initialization |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
6 void Start () { |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
7 TreeMap<int,int> map = new TreeMap<int, int> (); |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
8 for (int count = 1; count < 6; count++) { |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
9 map = map.put (count, count); |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
10 map.checkDepth (); |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
11 } |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
12 |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
13 // ただ消すための数字をここに入れているだけ |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
14 List<int> list = new List<int>(); |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
15 for (int count = 1; count < 6; count++) { |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
16 list = list.addLast (count); |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
17 } |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
18 |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
19 foreach(int num in list){ |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
20 Debug.Log(num); |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
21 map = map.delete(num); |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
22 map.checkDepth(); |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
23 } |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
24 Debug.Log ("end"); |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
25 } |
b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff
changeset
|
26 } |