tmf: Remove back-reference from HT-Node to HT-Tree
authorEtienne Bergeron <etienne.bergeron@gmail.com>
Tue, 10 Dec 2013 02:12:21 +0000 (21:12 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 12 Dec 2013 03:02:19 +0000 (22:02 -0500)
commitffd0aa67a826e24981e62d6ca28c3571f7a2957b
tree0b677aadc5c057a8e816176ae64726cecac7ef53
parent526c823cf42cbeb1b4c891880bac445be36f2135
tmf: Remove back-reference from HT-Node to HT-Tree

The HT-Node needs to know about the layout of the node (size, n-child)
but not about the tree in which it belongs to. Any back reference
is typically a bad design. It complicated unittests and maintenance.

  HT-Tree --->  HTNode--\
   \                     \
    \---------------------> HTConfig

This patch-set is one of multiples to refactor the HT-Tree API.
The API refactoring will lead us to a easier algorithmic refactoring.

Change-Id: Ifa11cec6a89b9b1c698e0a2b2b18ac5ec70a7db0
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/19555
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/historytree/CoreNode.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/historytree/HTNode.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/historytree/HT_IO.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/historytree/HistoryTree.java
This page took 0.037382 seconds and 5 git commands to generate.