
src/pmc/orderedhashiterator.pmc

Implementation of Iterator for OrderedHash.

void init_pmc(PMC *initializer)Initializes the iterator with an aggregate PMC. Defaults iteration mode to iterate from start.
void mark()Marks the hash as live.
PMC *clone()void set_integer_native()PMC *get_pmc()Returns this Iterator's Hash.
INTVAL get_bool()Returns true if there is more elements to iterate over.
INTVAL elements()Returns the number of remaining elements in the Hash.
PMC *shift_pmc()Returns the HashIteratorKey for the current position and advance the next one.
PMC *pop_pmc()Returns the HashIteratorKey for the current position and advance the next one for reverse iterator.