Public Member Functions | |
| Node (Object obj) | |
| When a Node is created, it is constructed with a left and right reference object. | |
| Object | getObj () |
| get the Object associated with the Node | |
| NodeReference | getLeftRef () |
| get a reference to the left branch | |
| NodeReference | getRightRef () |
| get a reference to the right branch | |
| Node | getLeft () |
| get the Node on the left branch | |
| void | setLeft (Node left) |
| set the Node on the left branch | |
| Node | getRight () |
| get the Node on the right branch | |
| void | setRight (Node right) |
| set the Node on the right branch | |
Private Member Functions | |
| void | init () |
| Initialize the left and right links. | |
Private Attributes | |
| Object | mObj |
| key/data object associated with this node | |
| NodeReference | mLeft |
| Reference object for the left link. | |
| NodeReference | mRight |
| Reference object for the right link. | |
|
|
When a Node is created, it is constructed with a left and right reference object. The left and right reference objects are unchangable, although what they point to can be changed (see setLeft() and setRight() below).
|
|
|
get the Node on the left branch
00145 { return mLeft.ref; }
|
|
|
get a reference to the left branch
00140 { return mLeft; }
|
|
|
get the Object associated with the Node
00137 { return mObj; }
|
|
|
get the Node on the right branch
00150 { return mRight.ref; }
|
|
|
get a reference to the right branch
00142 { return mRight; }
|
|
|
Initialize the left and right links.
|
|
|
set the Node on the left branch
00147 { mLeft.ref = left; }
|
|
|
set the Node on the right branch
00152 { mRight.ref = right; }
|
|
|
Reference object for the left link.
|
|
|
key/data object associated with this node
|
|
|
Reference object for the right link.
|
1.3.3