Leaf values in a tree

Hey all. Simple question:

I have a basic Tree with a bunch of leafs that store recorded data values. I know how to view the values, using Scan or Show functions, but is there a function I can call that returns these values, entry by entry, or as arrays or whatever, rather than just printing them to the screen?

//get pointer to leaf TLeaf *leaf = mytree.GetLeaf(leafname); //put this outside the event loop .. double val = leaf->GetLeafValue();

Thanks a million.