next_ordered


Description:

[ Version ( since = "1.6" ) ]
public bool next_ordered (out unowned string member_name, out unowned Node member_node)

Advance this and retrieve the next member in the object.

If the end of the object is reached, false is returned and member_name and member_node are set to invalid values. After that point, the this is invalid.

The order in which members are returned by the iterator is the same order in which the members were added to the Object. The iterator is invalidated if its Object is modified during iteration.

You must use this function with a ObjectIter initialized with init_ordered; using this function with an iterator initialized with init yields undefined behavior.

See also: next

Parameters:

this

a ObjectIter

member_name

return location for the member name, or null to ignore

member_node

return location for the member value, or null to ignore

Returns:

true if member_name and member_node are valid; false if the end of the object has been reached