class PP_REFLECTIVELY_SETTABLE_LIST

(source code)

Description

List of objects conforming to PP_SETTABLE_FROM_UPPER_CAMEL_CASE

note
	description: "List of objects conforming to [$source PP_SETTABLE_FROM_UPPER_CAMEL_CASE]"

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

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2018-04-28 19:10:45 GMT (Saturday 28th April 2018)"
	revision: "2"

class
	PP_REFLECTIVELY_SETTABLE_LIST [G -> PP_SETTABLE_FROM_UPPER_CAMEL_CASE create make_default end]

inherit
	EL_ARRAYED_LIST [G]

	EL_MAKEABLE
		rename
			make as make_empty
		undefine
			is_equal, copy
		end

create
	make

feature -- Element change

	set_i_th (var: PP_L_VARIABLE; a_value: ZSTRING)
		do
			if valid_index (var.index) then
				go_i_th (var.index)
			else
				extend (create {G}.make_default)
				finish
			end
			item.set_field (var.name, a_value)
		end
end