note description: "Representation of an external function" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class EXTERNAL_FUNC_I inherit EXTERNAL_I redefine assigner_name_id, unselected, replicated, transfer_to, set_type, is_function, type, new_api_feature, transfer_from, selected, new_deferred_anchor end create make feature type: TYPE_A -- Type of the function assigner_name_id: INTEGER -- Id of `assigner_name' in `Names_heap' table set_type (t: like type; a: like assigner_name_id) -- Assign `t' to `type' and `a' to `assigner_name_id'. do type := t assigner_name_id := a end is_function: BOOLEAN = True transfer_to (other: like Current) -- Transfer datas form `other' into Current do Precursor {EXTERNAL_I} (other) other.set_type (type, assigner_name_id) end transfer_from (other: like Current) -- Transfer datas form `other' into Current do Precursor {EXTERNAL_I} (other) set_type (other.type, other.assigner_name_id) end replicated (in: INTEGER): FEATURE_I -- Replication local rep: R_EXTERNAL_FUNC_I; do create rep; transfer_to (rep); rep.set_code_id (new_code_id); rep.set_access_in (in) Result := rep; end; selected: EXTERNAL_FUNC_I -- do create Result.make (extension) Result.transfer_from (Current) end unselected (in: INTEGER): FEATURE_I -- Unselected feature local unselect: D_EXTERNAL_FUNC_I; do create unselect; transfer_to (unselect); unselect.set_access_in (in); Result := unselect; end; feature -- Undefinition new_deferred_anchor: DEF_FUNC_I -- do check False then end end feature -- Api creation new_api_feature: E_FUNCTION -- API feature creation do create Result.make_with_aliases (feature_name_id, alias_names, has_convert_mark, feature_id) Result.set_type (type, assigner_name) update_api (Result) end note copyright: "Copyright (c) 1984-2019, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end