Property definitions

core $ HashMapIterator :: defaultinit
# A `MapIterator` over a `HashMap`.
private class HashMapIterator[K, V]
	super MapIterator[K, V]
	redef fun is_ok do return _node != null

	redef fun item
	do
		assert is_ok
		return _node._value
	end

	#redef fun item=(value)
	#do
	#	assert is_ok
	#	_node.second = value
	#end

	redef fun key
	do
		assert is_ok
		return _node._key
	end

	redef fun next
	do
		assert is_ok
		_node = _node._next_item
	end

	# The map to iterate on
	var map: HashMap[K, V]

	# The current node
	var node: nullable HashMapNode[K, V] = null

	init
	do
		_map = map
		_node = _map._first_item
	end
end
lib/core/collection/hash_collection.nit:382,1--422,3