/src/tools/wrappers-generator/c_reference_type.e

http://github.com/tybor/Liberty · Specman e · 43 lines · 18 code · 8 blank · 17 comment · 0 complexity · 882b5223d11325d28afbe0bcfaf9f407 MD5 · raw file

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