class EL_ITERABLE_POOL_SCOPE

(source code)

Client examples: BASE_AUTOTEST_APP

description

Iterable across loop scope during which a object can be borrowed from a pool factory and then automatically returned after the first and only iteration.

note
	description: "[
		Iterable **across** loop scope during which a object can be borrowed from a pool factory and
		then automatically returned after the first and only iteration.
	]"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2023-08-23 10:31:43 GMT (Wednesday 23rd August 2023)"
	revision: "3"

class
	EL_ITERABLE_POOL_SCOPE [G]

inherit
	ITERABLE [G]

create
	make

feature {NONE} -- Initialization

	make (a_pool: like pool)
		do
			pool := a_pool
		end

feature -- Access

	new_cursor: EL_POOL_SCOPE_CURSOR [G]
		do
			create Result.make (pool)
		end

feature {NONE} -- Internal attributes

	pool: EL_FACTORY_POOL [G]

end