/src/tools/wrappers-generator/c_reference_type.e
Specman e | 43 lines | 18 code | 8 blank | 17 comment | 0 complexity | 882b5223d11325d28afbe0bcfaf9f407 MD5 | raw file
1class C_REFERENCE_TYPE 2 -- A GccXml node representing a C++ reference. 3 -- Currently crudely wrapped as a POINTER. 4 5inherit 6 C_TYPE 7 IDENTIFIED_NODE 8 TYPED_NODE 9 STORABLE_NODE 10 -- ReferenceType nodes also has size and align attributes 11 12create {GCCXML_TREE} 13 make 14 15feature {ANY} 16 store 17 do 18 types.fast_put(Current, id) 19 end 20 21 is_fundamental: BOOLEAN False 22 -- Note: Accounting a C++ reference as fundamental type is a rough approximation. 23 24 is_void: BOOLEAN False 25 26 has_wrapper: BOOLEAN False 27 28 wrapper_type: STRING "POINTER" 29 -- Note: this is a rought approximation. 30 -- invariant name.is_equal(once U"ReferenceType") 31 32end -- class C_REFERENCE_TYPE 33-- Copyright (C) 2008-2017: ,2009,2010 Paolo Redaelli 34-- wrappers-generator is free software: you can redistribute it and/or modify it 35-- under the terms of the GNU General Public License as publhed by the Free 36-- Software Foundation, either version 2 of the License, or (at your option) 37-- any later version. 38-- wrappers-generator is distributed in the hope that it will be useful, but 39-- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 40-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 41-- more details. 42-- You should have received a copy of the GNU General Public License along with 43-- th program. If not, see <http://www.gnu.org/licenses/>.