Commit Graph

48 Commits

Author SHA1 Message Date
Léa Saviot
170ce95041 AllocationFail 2018-06-27 16:17:20 +02:00
Léa Saviot
2248a257c8 Cleaning 2018-06-27 16:17:20 +02:00
Léa Saviot
08f16bca23 Add assertions on pool emptiness 2018-06-27 16:17:20 +02:00
Léa Saviot
3d5e8dc4c4 Fix retain count when changing cursor pointed node 2018-06-27 16:17:20 +02:00
Léa Saviot
d3db6827ae Modify tests 2018-06-27 16:17:20 +02:00
Léa Saviot
adc422235b Rule of 5 for TreeReference 2018-06-27 16:17:20 +02:00
Léa Saviot
1e4f65e414 Cleaning 2018-06-27 16:17:20 +02:00
Léa Saviot
6f41816500 Clean TreePool 2018-06-27 16:17:20 +02:00
Léa Saviot
920d815b67 Remove dangerous casts 2018-06-27 16:17:20 +02:00
Léa Saviot
2bc5290ff1 Clean unary tests 2018-06-27 16:17:20 +02:00
Léa Saviot
8c536abd80 Remove Cursor class 2018-06-27 16:17:20 +02:00
Léa Saviot
f67eb9c0a8 TreeReferences do not deepcopy unless asked 2018-06-27 16:17:20 +02:00
Léa Saviot
2906d72aee MoveLeft is working 2018-06-27 16:17:20 +02:00
Léa Saviot
9a7441d045 Define a cursor on layout children 2018-06-27 16:17:13 +02:00
Léa Saviot
0ef7077bd3 Fix CharLayoutNode::Description 2018-06-26 15:24:01 +02:00
Léa Saviot
b58ab0a8ca LayoutCursor 2018-06-26 15:11:04 +02:00
Léa Saviot
f8d08f8599 Make numberOfChildren virtual pure 2018-06-26 14:30:42 +02:00
Léa Saviot
c60bc61d32 Add class cursor on for all TreeReferences 2018-06-26 14:30:04 +02:00
Léa Saviot
7587b05c8b Some layout navigation 2018-06-25 13:50:38 +02:00
Léa Saviot
0af06b5f3a Add Layouts 2018-06-25 13:37:28 +02:00
Léa Saviot
517b2892bb TreeNode::swap 2018-06-22 15:42:28 +02:00
Léa Saviot
fbaaa96ab1 Fix TreePool::move 2018-06-22 15:40:51 +02:00
Léa Saviot
d7ea9f3bf7 Remove debug printing 2018-06-22 15:16:48 +02:00
Léa Saviot
6f598acc10 ReplaceWith and ReplaceChild methods on References 2018-06-22 15:12:19 +02:00
Léa Saviot
0fb04ea45a New TreeNode methods 2018-06-22 15:07:24 +02:00
Léa Saviot
2908c20def Add methods to tree node and new parent() algorithm 2018-06-22 15:07:24 +02:00
Léa Saviot
ac182b04d1 Clean TreeNode 2018-06-22 15:07:24 +02:00
Léa Saviot
edce759ae5 Rename operand to child 2018-06-22 15:07:24 +02:00
Léa Saviot
287c9ca990 TreeNode::parent algorithm 2018-06-22 15:07:24 +02:00
Léa Saviot
1adff31abd Remove TreeNode constructor arguments 2018-06-22 15:07:24 +02:00
Léa Saviot
267ae5843b Add const qualifier 2018-06-22 15:07:24 +02:00
Léa Saviot
9a2c458f49 Clean code 2018-06-22 15:07:24 +02:00
Léa Saviot
c46bb03247 Replace new/delete TreeNode with TreePool::create/discardTreeNode 2018-06-22 15:07:24 +02:00
Léa Saviot
4440f183c4 TreeNode::size is pure virtual 2018-06-22 15:07:24 +02:00
Léa Saviot
a63d7e35fe Protected/private tree node methods 2018-06-22 15:07:24 +02:00
Léa Saviot
b201e82cdd Fix some methods 2018-06-22 15:07:24 +02:00
Léa Saviot
b81d491644 Clean code and debug printing 2018-06-22 15:07:24 +02:00
Léa Saviot
f39f974b76 One tree pool instance 2018-06-22 15:07:24 +02:00
Léa Saviot
8ed138fafe NodeForIdentifier array works properly 2018-06-22 15:07:24 +02:00
Léa Saviot
c6af4bb16c Clean and correct TreeNode 2018-06-22 15:07:24 +02:00
Léa Saviot
4c300e66d7 Reorganize tree_pool.h 2018-06-22 15:07:24 +02:00
Léa Saviot
7af35728f2 Fix TreePool::insert, move and other methods 2018-06-22 15:07:24 +02:00
Léa Saviot
42c57ae6f2 Fix TreePool::alloc and dealloc 2018-06-20 17:08:00 +02:00
Léa Saviot
2f8d8890cb Map node/identifier in an array and implement newIdentifier() 2018-06-20 17:08:00 +02:00
Léa Saviot
3777304adb Implement some tree methods 2018-06-20 14:19:42 +02:00
Romain Goyet
a301de1378 Addition seems to be working 2018-06-12 17:39:10 +02:00
Romain Goyet
68f663d47e Use operator new/delete directly on ExpressionNode 2018-06-12 16:50:49 +02:00
Romain Goyet
3cd1015614 Initial import 2018-06-12 13:56:20 +02:00