std::map of std::sets. Tree evaluation problem.
Hi,
I have an expression tree in which the nodes are operators (union, intersection etc represented by a string "/u") or the nodes are std::sets.
How could I access the std::set's values in order to carry out the tree evaluation using the operator functions(set_union(), set_intersection() etc) ? The expressions are pre and postfix.
Thanks for any help, it's most appreciated.
Carrots
Junior Poster in Training
62 posts since Mar 2009
Reputation Points: 41
Solved Threads: 0
Thanks for your help, so you think I should implement my tree_evaluation() function to iterate through the sets, and return the values held to the set_union(), set_intersection() functions?
Thanks for giving me direction with this. I'm new to trees in general. :)
Carrots
Junior Poster in Training
62 posts since Mar 2009
Reputation Points: 41
Solved Threads: 0