mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
[poincare] Un-inline TreeByReference::childAtIndex
This commit is contained in:
@@ -53,7 +53,7 @@ public:
|
||||
int numberOfChildren() const { return node()->numberOfChildren(); }
|
||||
int indexOfChild(TreeByReference t) const { return node()->indexOfChild(t.node()); }
|
||||
TreeByReference parent() const { return (isUninitialized() || node()->parent() == nullptr) ? TreeByReference() : TreeByReference(node()->parent()); }
|
||||
TreeByReference childAtIndex(int i) const { return TreeByReference(node()->childAtIndex(i)); }
|
||||
TreeByReference childAtIndex(int i) const;
|
||||
void setParentIdentifier(int id) { node()->setParentIdentifier(id); }
|
||||
void deleteParentIdentifier() { node()->deleteParentIdentifier(); }
|
||||
void deleteParentIdentifierInChildren() { node()->deleteParentIdentifierInChildren(); }
|
||||
|
||||
@@ -35,6 +35,8 @@ TreeByReference TreeByReference::clone() const {
|
||||
|
||||
/* Hierarchy operations */
|
||||
|
||||
TreeByReference TreeByReference::childAtIndex(int i) const { return TreeByReference(node()->childAtIndex(i)); }
|
||||
|
||||
void TreeByReference::replaceWithInPlace(TreeByReference t) {
|
||||
assert(!isUninitialized());
|
||||
TreeByReference p = parent();
|
||||
|
||||
Reference in New Issue
Block a user