A2-Collaboration / ant

Just another analysis toolkit for A2
3 stars 20 forks source link

Rewrite Tree<T> with iterators #21

Open neiser opened 8 years ago

neiser commented 8 years ago

The current Tree<T> is flawed concering const-correctness, and the user cannot choose whether iteration should happen depth or breadth first. STL iterators could be the right solution here. Also an iterator over the leaves only would be helpful in many situations, or iterators over certain classes of nodes...

See also #18