I want to make my AVL tree threaded, so I can implement iterators. I've looked everywhere for how to implement threading, but all I find is examples of how to do the inorder traversal of an already threaded tree. What I want to know is how to actually implement the threading itself. I can't find a single example. Please help!
I need it to be threaded so I can implement an iterator class for it. Threading is the only way I can think of that I would be able to easily implement iterators.
I'm not using the STL, and I have to implement the iterators on an AVL tree where I feel it would be more difficult to backtrack using a previous node pointer. I really just want to know how to implement threading as I can't find an example for it anywhere.
No one ever replied, so I tried to see if I could figure out threading. I am fairly sure I would know how to do the iterator once threading is established, but I'm pretty lost when thinking about how to write them using the previous. This is probably because I've never written an iterator before.