Matt S Trout > Rakudo-Star-2012.08_001 > src/pmc/orderedhashiterator.pmc

Download:
Rakudo-Star-2012.08_001.tar.gz

Annotate this POD

Source  

NAME ^

src/pmc/orderedhashiterator.pmc

DESCRIPTION ^

Implementation of Iterator for OrderedHash.

METHODS ^

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.

syntax highlighting: