Skip to content

Commit

Permalink
Modified Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-xiaoqiang committed Aug 10, 2018
1 parent d0a5960 commit fb82dae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/王晓强-个人报告.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
- 继承属性通知发生器(`Proxy_PropertyNotification<T>`)
- 设计`virtual`析构函数, `virtual`清空函数(不同模型将使用不同清空动作)
- 树模板声明

```C++
template <typename T, typename S = std::less<T>>
class BaseTree : public Proxy_PropertyNotification<BaseTree<T, S>> {
Expand All @@ -61,6 +62,7 @@
void clear();
};
```
- **设计二叉查找树模型, 提供动态查找的基本操作(插入, 删除, 静态查找)**
- 树节点继承基类树节点, 树继承基类树
- 实现插入, 删除, 查找算法
Expand All @@ -78,6 +80,7 @@
void erase(const T& key);
};
```

- **设计ViewModel单例, 管理Model, 命令, 通知接收器, 通知发生器**
- 继承属性通知发生器(`Proxy_PropertyNotification<T>`)
- 继承命令通知发生器(`Proxy_CommandNotification<T>`)
Expand All @@ -104,6 +107,7 @@
- 详见`/project/ViewModel/Commands/*.*`
#### 单元测试
- 二叉查找树

```C++
#include "BST.h"
int main()
Expand Down Expand Up @@ -131,6 +135,7 @@
return 0;
}
```
- 程序运行输出
![testBST](https://github.com/SummerZJU/CSummerZJU/blob/master/image/Model/testBST.png "testBST")
Expand All @@ -153,6 +158,7 @@
- 详见`/project/ViewModel/Commands/*.*`, `/project/Model/*.*`
#### 单元测试
- 平衡二叉树
```C++
#include "AVLTree.h"
Expand All @@ -177,6 +183,7 @@
return 0;
}
```

- 程序运行输出

![testAVL](https://github.com/SummerZJU/CSummerZJU/blob/master/image/Model/testAVL.png "testAVL")
Expand Down Expand Up @@ -227,6 +234,7 @@
return 0;
}
```
- 程序运行输出

![testRBT](https://github.com/SummerZJU/CSummerZJU/blob/master/image/Model/testRBT.png "testRBT")
Expand Down

0 comments on commit fb82dae

Please sign in to comment.