#include <tree.h>
Inheritance diagram for TreeNode< T >:
Public Methods | |
TreeNode (T &a_othis) | |
T * | addChild (T *ch) |
T & | getLastRecur () |
void | setNext (T *ch) |
T const * | getFirstChild () const |
T * | getFirstChild () |
T const * | getNext () const |
T * | getNext () |
|
|
|
|
|
00094 { 00095 if (next!=NULL) return next->getLastRecur(); 00096 else return othis; 00097 } |
|
00100 { 00101 for (T *cur=ch; cur!=NULL; cur=cur->next) 00102 { 00103 cur->parent=parent; 00104 } 00105 next=ch; 00106 next->prev=&othis; 00107 } |
|
00109 {
00110 return child;
00111 }
|
|
00113 {
00114 return child;
00115 }
|
|
00117 {
00118 return next;
00119 }
|
|
00121 {
00122 return next;
00123 }
|