class EL_QUERYABLE_ARRAYED_LIST

(source code)

Client examples: RBOX_DATABASE

description

An arrayed list implementation of EL_QUERYABLE_CHAIN

descendants

EL_QUERYABLE_ARRAYED_LIST [G]
   AIA_CREDENTIAL_LIST
      AIA_STORABLE_CREDENTIAL_LIST
   ECD_ARRAYED_LIST [G -> EL_STORABLE create make_default end]
      COUNTRY_DATA_TABLE
      ECD_STORABLE_ARRAYED_LIST [G -> EL_STORABLE create make_default end]
note
	description: "An arrayed list implementation of ${EL_QUERYABLE_CHAIN}"
	descendants: "See end of class"

	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-04-03 16:01:47 GMT (Wednesday 3rd April 2024)"
	revision: "16"

class
	EL_QUERYABLE_ARRAYED_LIST [G]

inherit
	EL_ARRAYED_LIST [G]
		redefine
			make, make_default_filled, make_from_array
		end

	EL_QUERYABLE_CHAIN [G]
		rename
			accommodate as grow
		undefine
			index_of, occurrences, do_all, do_if, for_all, joined, search, copy,
			force, append_sequence, prune, prune_all, remove, swap, new_cursor,
			pop_cursor, push_cursor, to_array, order_by,
			-- item access
			i_th, at, last, first,
			-- Status query
			off, has, there_exists, is_equal, valid_index, is_inserted,
			-- Cursor movement
			move, start, finish, go_i_th, put_i_th, find_next_item
		end

create
	make, make_default_filled, make_from_array, make_from

feature -- Initialization

	make (n: INTEGER)
			-- Allocate list with `n' items.
			-- (`n' may be zero for empty list.)
		do
			make_queryable
			Precursor (n)
		end

	make_default_filled (n: INTEGER)
			-- Allocate list with `n' items.
			-- (`n' may be zero for empty list.)
			-- This list will be full.
		do
			make_queryable
			Precursor (n)
		end

	make_from_array (a: ARRAY [G])
			-- Create list from array `a'.
		do
			make_queryable
			Precursor (a)
		end

note
	descendants: "[
			EL_QUERYABLE_ARRAYED_LIST [G]
				${AIA_CREDENTIAL_LIST}
					${AIA_STORABLE_CREDENTIAL_LIST}
				${ECD_ARRAYED_LIST [G -> EL_STORABLE create make_default end]}
					${COUNTRY_DATA_TABLE}
					${ECD_STORABLE_ARRAYED_LIST [G -> EL_STORABLE create make_default end]}
	]"
end