1ExtUtils::Typemaps::ObjUescetrMaCpo(n3t)ributed Perl DocEuxmteUnttialtsi:o:nTypemaps::ObjectMap(3)
2
3
4
6 ExtUtils::Typemaps::ObjectMap - A set of typemaps for opaque C/C++
7 objects
8
10 use ExtUtils::Typemaps::ObjectMap;
11 # First, read my own type maps:
12 my $private_map = ExtUtils::Typemaps->new(file => 'my.map');
13
14 # Then, get the object map set and merge it into my maps
15 $private_map->merge(typemap => ExtUtils::Typemaps::ObjectMap->new);
16
17 # Now, write the combined map to an output file
18 $private_map->write(file => 'typemap');
19
21 "ExtUtils::Typemaps::ObjectMap" is an "ExtUtils::Typemaps" subclass
22 that provides a set of mappings for using pointers to C/C++ objects as
23 opaque objects from Perl.
24
25 These mappings are taken verbatim from Dean Roehrich's
26 "perlobject.map". They are:
27
28 # "perlobject.map" Dean Roehrich, version 19960302
29 #
30 # TYPEMAPs
31 #
32 # HV * -> unblessed Perl HV object.
33 # AV * -> unblessed Perl AV object.
34 #
35 # INPUT/OUTPUT maps
36 #
37 # O_* -> opaque blessed objects
38 # T_* -> opaque blessed or unblessed objects
39 #
40 # O_OBJECT -> link an opaque C or C++ object to a blessed Perl object.
41 # T_OBJECT -> link an opaque C or C++ object to an unblessed Perl object.
42 # O_HvRV -> a blessed Perl HV object.
43 # T_HvRV -> an unblessed Perl HV object.
44 # O_AvRV -> a blessed Perl AV object.
45 # T_AvRV -> an unblessed Perl AV object.
46
48 These are the overridden methods:
49
50 new
51 Creates a new "ExtUtils::Typemaps::ObjectMap" object. It acts as any
52 other "ExtUtils::Typemaps" object, except that it has the object maps
53 initialized.
54
56 ExtUtils::Typemaps, ExtUtils::Typemaps::Default,
57 ExtUtils::Typemaps::STL::String
58
60 The module was written by Steffen Mueller <smueller@cpan.org>, but the
61 important bit, the typemap, was written by Dean Roehrich.
62
64 Copyright 2010, 2011, 2012, 2013 by Steffen Mueller
65
66 Except for the typemap code, which is copyright 1996 Dean Roehrich
67
68 This program is free software; you can redistribute it and/or modify it
69 under the same terms as Perl itself.
70
71
72
73perl v5.36.0 2022-07-22 ExtUtils::Typemaps::ObjectMap(3)