def generate_cumulative_all_sub_locations(self):
for index in range(self.nbr_of_sub_locations()):<EOL><INDENT>yield self.get_sub_location_descriptor(<NUM_LIT:0>, index+<NUM_LIT:1>)<EOL><DEDENT>
Generate all sub-locations but in a cumulative way.

If ``location == loc1.loc2.loc3``, then this generator will yield:

loc1
loc1.loc2
loc1.loc2.loc3

Yields: