equal
deleted
inserted
replaced
15 typedef typename Parent::Node Node; |
15 typedef typename Parent::Node Node; |
16 typedef typename Parent::Edge Edge; |
16 typedef typename Parent::Edge Edge; |
17 |
17 |
18 Node addNode() { |
18 Node addNode() { |
19 Node node = Parent::addNode(); |
19 Node node = Parent::addNode(); |
20 Parent::getNodeObserverRegistry().add(node); |
20 Parent::getObserverRegistry(Node()).add(node); |
21 return node; |
21 return node; |
22 } |
22 } |
23 |
23 |
24 Edge addEdge(const Node& from, const Node& to) { |
24 Edge addEdge(const Node& from, const Node& to) { |
25 Edge edge = Parent::addEdge(from, to); |
25 Edge edge = Parent::addEdge(from, to); |
26 Parent::getEdgeObserverRegistry().add(edge); |
26 Parent::getObserverRegistry(Edge()).add(edge); |
27 return edge; |
27 return edge; |
28 } |
28 } |
29 |
29 |
30 }; |
30 }; |
31 |
31 |