def get_all_objects(self):
for i, generation in enumerate(self.gc_generations):<EOL><INDENT>generation_head_ptr = pygc_head_ptr = generation.head.get_pointer()<EOL>generation_head_addr = generation_head_ptr._value<EOL>while True:<EOL><INDENT>pygc_head_ptr = pygc_head_ptr.deref().gc_next<EOL>if pygc_head_ptr._value == generation_head_addr:<EOL><INDENT>break<EOL><DEDENT>yield pygc_head_ptr.deref().get_object_ptr()<EOL><DEDENT><DEDENT>
Return pointers to all GC tracked objects