indexing legal: "See notice at end of class." status: "See notice at end of class." class POINTER_I inherit BASIC_I redefine is_feature_pointer, description, sk_value, hash_code, element_type, default_create, tuple_code end create default_create feature {NONE} -- Initialization default_create is -- Initialize new instance of BOOLEAN_I do make (system.pointer_class.compiled_class.class_id) end feature -- Status report element_type: INTEGER_8 is -- Pointer element type do Result := {MD_SIGNATURE_CONSTANTS}.Element_type_i end tuple_code: INTEGER_8 is -- Tuple code for class type do Result := {SHARED_GEN_CONF_LEVEL}.pointer_tuple_code end reference_type: CL_TYPE_I is -- Assocated reference type of Current. do create Result.make (system.pointer_ref_class.compiled_class.class_id) end feature level: INTEGER is -- Internal code for generation do Result := C_pointer end is_feature_pointer: BOOLEAN is True -- Is the type a feature pointer type ? description: POINTER_DESC is -- Type description for skeleton do create Result end c_string: STRING is "EIF_POINTER" -- String generated for the type. union_tag: STRING is "parg" hash_code: INTEGER is -- Hash code for current type once Result := Pointer_code end sk_value: INTEGER is -- Generate SK value associated to the current type. do Result := Sk_pointer end generate_union (buffer: GENERATION_BUFFER) is -- Generate discriminant of C structure "item" associated -- to the current C type in `buffer'. do buffer.put_string ("it_ptr") end generate_typed_field (buffer: GENERATION_BUFFER) is -- Generate field of C structure "EIF_UNION" associated -- to the current C type in `buffer'. do buffer.put_string ("value.EIF_POINTER_value") end generate_typed_tag (buffer: GENERATION_BUFFER) is -- Generate tag of C structure "EIF_UNION" associated -- to the current C type in `buffer'. do buffer.put_string ("type = SK_POINTER") end generate_sk_value (buffer: GENERATION_BUFFER) is -- Generate SK value associated to current C type in `buffer'. do buffer.put_string ("SK_POINTER") end type_a: POINTER_A is do create Result end feature make_default_byte_code (ba: BYTE_ARRAY) is -- Generate default value of basic type on stack. do ba.append (Bc_null_pointer) end indexing copyright: "Copyright (c) 1984-2006, 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 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end