class EL_OBJECTS_BY_TYPE
Client examples: BASE_AUTOTEST_APP
Lookup objects by type_id
note
description: "Lookup objects by type_id"
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: "2024-09-22 16:07:30 GMT (Sunday 22nd September 2024)"
revision: "5"
class
EL_OBJECTS_BY_TYPE
inherit
EL_HASH_TABLE [ANY, INTEGER_32]
create
make_from_array, make
feature {NONE} -- Initialization
make_from_array (objects: ARRAY [ANY])
do
make_equal (objects.count)
extend_from_array (objects)
end
feature -- Element change
extend_from_array (objects: ARRAY [ANY])
do
across objects as obj loop
put (obj.item, obj.item.generating_type.type_id)
end
end
end