Commit Graph

33 Commits

Author SHA1 Message Date
Léa Saviot
f4eea76070 [poincare] Un-inline TreeByReference::childAtIndex 2018-09-07 11:53:48 +02:00
Léa Saviot
b40aceec57 [poincare] Un-inline TreeByReference::TreeByReference(Node *) 2018-09-07 11:48:00 +02:00
Léa Saviot
106357bce7 [poincare] Clean TreeByReference 2018-09-06 14:06:18 +02:00
Léa Saviot
2e36ae0dd6 [poincare] Clean inlining in TreeNode 2018-09-06 14:01:40 +02:00
Léa Saviot
e3a09286ac [poincare] Remove AllocationFailures 2018-09-05 16:19:11 +02:00
Léa Saviot
c6237ab448 [poincare] First attempt at setjump/longjump exceptions 2018-09-04 17:37:22 +02:00
Émilie Feral
f749efaba0 [poincare] TreeByReference: parent is reset at cloning 2018-09-04 16:46:30 +02:00
Émilie Feral
d3150b696c [poincare] Fix TreeByReference::mergeChildrenAtIndexInPlace: to access
childAtIndex, the number of children of each node should be correct
2018-09-04 15:19:25 +02:00
Léa Saviot
6b9db23942 [poincare] A TreeNode keeps the identifier of its parent 2018-09-04 10:43:34 +02:00
Léa Saviot
c8ba9c9d49 [poincare] Fix TreeByReference::setTo when this has ID -1 2018-09-03 15:45:34 +02:00
Léa Saviot
f095c9de4d [poincare] Detach a child always replaces it with a ghost 2018-09-03 11:24:25 +02:00
Léa Saviot
b5572c2860 [poincare] Coding style in TreeByReference 2018-08-31 10:29:41 +02:00
Léa Saviot
fb3d34cf2b [poincare] Automatically detach a tree before adding it 2018-08-31 10:23:52 +02:00
Léa Saviot
75f575c7d9 [poincare] Inline TreeByReference::~TreeByReference 2018-08-30 10:18:30 +02:00
Léa Saviot
c9242f730b [poincare] Fix some Ghost Layout assertions and isUninitialized problems 2018-08-28 16:22:59 +02:00
Émilie Feral
d4f6629e8c [poincare] Correct didAddChildAtIndex and addChildAtIndexInPlace for
Matrices
2018-08-21 12:05:09 +02:00
Léa Saviot
aa7e0c2ccc [poincare] Fix TreeByReference::mergeChildrenAtIndexInPlace 2018-08-20 17:05:07 +02:00
Léa Saviot
cd8b460001 [poincare] Escape replace/removeChild when tree is alloc fail 2018-08-20 17:01:44 +02:00
Léa Saviot
4269003d1a [poincare] Copy static nodes in the pool before add/replaceChild 2018-08-17 10:34:42 +02:00
Léa Saviot
22abc46f11 [poincare] Static nodes are not copied when cloned 2018-08-14 18:14:14 +02:00
Léa Saviot
cd43d84b1e [poincare] Fix TreeRef deletion: releaseNode shouldn't create a TreeRef 2018-08-14 17:31:47 +02:00
Léa Saviot
71c807b565 [poincare] Node->isDefined becomes !Node->isUninitialized 2018-08-14 16:40:12 +02:00
Léa Saviot
d8732a9e2f [poincare] TreeRefs should never have the NoNode identifier 2018-08-14 15:27:25 +02:00
Léa Saviot
5d9e69dedc [poincare] Remove Tree constructors that use nullptr as parameter 2018-08-14 14:58:47 +02:00
Romain Goyet
30a4db3e34 [poincare] Allow logging of an Expression (e.g. Integer("123").log()) 2018-08-10 21:32:27 +02:00
Léa Saviot
4a9526d707 [poincare] Finish the method TreePool::createTreeNode 2018-08-10 15:55:07 +02:00
Romain Goyet
29f5763c7d [poincare] TreeNode have a zero refcount by default 2018-08-10 15:39:07 +02:00
Émilie Feral
38a7816d10 [poincare] When adding a child to matrix, didAddChildAtIndex should
update the matrix dimensions to make the pool syntaxically correct
2018-08-10 15:18:17 +02:00
Émilie Feral
49d4fcb77f [poincare] Fix TreeByValue and change name
treeChildAtIndex->childAtIndex
2018-08-09 11:57:25 +02:00
Romain Goyet
c29afba2bd [poincare] Move UndefinedReference to Undefined 2018-08-07 17:20:57 +02:00
Léa Saviot
dab15bd52d [poincare] Detach layouts before adding them 2018-08-07 16:26:28 +02:00
Émilie Feral
ecc71f84b8 [poincare] Change methods names of TreeByReference: add 'InPlace' 2018-08-07 14:19:30 +02:00
Émilie Feral
fd3b9580f0 [poincare] TreeReference-->TreeByReference 2018-08-07 11:54:45 +02:00