user_guide:extend:cpp_type_binding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
reference:cpp_type_binding [2012/03/31 09:26] – [Glue code generation] gawrilowreference:cpp_type_binding [2012/03/31 09:27] – [Method generation] gawrilow
Line 30: Line 30:
     * structure constructor for composite types: ''%%new Type(%%''init1, init2, ...''%%)%%''     * structure constructor for composite types: ''%%new Type(%%''init1, init2, ...''%%)%%''
   .. If the C++ class bound to it does not support the corresponding operation, for example, it is lacking the default constructor or the input ''%%operator >>%%'', you should suppress the standard constructors and provide appropriate specializations of ''method construct'' in the [[rulefiles#property_type_scope_definitions|type definition scope]].   .. If the C++ class bound to it does not support the corresponding operation, for example, it is lacking the default constructor or the input ''%%operator >>%%'', you should suppress the standard constructors and provide appropriate specializations of ''method construct'' in the [[rulefiles#property_type_scope_definitions|type definition scope]].
-  ? ''%%fields => [ "%%''name''%%"%%'', ... ''%%]%%''+  ? ''%%fields => [ "name", ... ]%%''
   :: For a composite type, creates methods with given names accessing the members (aka fields of a structure).  The order of the names must correspond to the order of type declarations in the specialization of ''%%pm::spec_object_traits<Type>::elements%%'' .   :: For a composite type, creates methods with given names accessing the members (aka fields of a structure).  The order of the names must correspond to the order of type declarations in the specialization of ''%%pm::spec_object_traits<Type>::elements%%'' .
   ? ''%%operators => "%%''overloaded operators''%%"%%''   ? ''%%operators => "%%''overloaded operators''%%"%%''
  • user_guide/extend/cpp_type_binding.txt
  • Last modified: 2019/01/29 21:46
  • by 127.0.0.1