What would be the appropriate data structure in which to store the contents of a TreeView?
I'm thinking of a TMap with the key being composed of each "branch" of the tree, delimited with another character of some kind.
But I've never used TreeViews before, and this is one of the more complex data structures I've dealt with in general. So I'd appreciate opinions from more experienced programmers on the best way to store this.
I'm thinking of a TMap with the key being composed of each "branch" of the tree, delimited with another character of some kind.
But I've never used TreeViews before, and this is one of the more complex data structures I've dealt with in general. So I'd appreciate opinions from more experienced programmers on the best way to store this.