Nice TWiki > Doc > TreeVisitorIntermediateExample (r1.2 vs. r1.3) TWiki webs:
Dev | Doc | Main | TWiki | Sandbox
Doc . { Changes | Index | Search | Go }
 <<O>>  Difference Topic TreeVisitorIntermediateExample (r1.3 - 24 Dec 2003 - IsaacGouy)
Changed:
<
<

dispatchTest(this@Tree) { }

>
>

dispatchTest(Tree this) { }

Changed:
<
<

dispatchTest(this@Interior) {

>
>

dispatchTest(Interior this) {

Changed:
<
<

size(t@Tree) = 1;

>
>

size(Tree t) = 1;

Changed:
<
<

size(t@Interior) = 1 + t.getLeft().size() + t.getRight().size();

>
>

size(Interior t) = 1 + t.getLeft().size() + t.getRight().size();

Changed:
<
<

prettyPrint(t@Tree) = t.prettyPrint( "" );

>
>

prettyPrint(Tree t) = t.prettyPrint( "" );

Changed:
<
<

prettyPrint(t@Tree, prefix) = prefix + t.value() + "\n";

>
>

prettyPrint(Tree t, prefix) = prefix + t.value() + "\n";

Changed:
<
<

prettyPrint(t@Interior, prefix) {

>
>

prettyPrint(Interior t, prefix) {


Topic TreeVisitorIntermediateExample . { View | Diffs | r1.3 | > | r1.2 | > | r1.1 | More }
Revision r1.2 - 05 Sep 2003 - 18:09 GMT - IsaacGouy
Revision r1.3 - 24 Dec 2003 - 21:34 GMT - IsaacGouy
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.