tree container iterator implement.