1ExtUtils::Typemaps::STLU:s:eVrecCtoonrt(r3i)buted Perl DEoxctuUmteinltsa:t:iToynpemaps::STL::Vector(3)
2
3
4
6 ExtUtils::Typemaps::STL::Vector - A set of typemaps for STL
7 std::vectors
8
10 use ExtUtils::Typemaps::STL::Vector;
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::STL::Vector->new);
16
17 # Now, write the combined map to an output file
18 $private_map->write(file => 'typemap');
19
21 "ExtUtils::Typemaps::STL::Vector" is an "ExtUtils::Typemaps" subclass
22 that provides a set of mappings for C++ STL vectors. These are:
23
24 TYPEMAP
25 std::vector<double> T_STD_VECTOR_DOUBLE
26 std::vector<double>* T_STD_VECTOR_DOUBLE_PTR
27
28 std::vector<int> T_STD_VECTOR_INT
29 std::vector<int>* T_STD_VECTOR_INT_PTR
30
31 std::vector<unsigned int> T_STD_VECTOR_UINT
32 std::vector<unsigned int>* T_STD_VECTOR_UINT_PTR
33
34 std::vector<std::string> T_STD_VECTOR_STD_STRING
35 std::vector<std::string>* T_STD_VECTOR_STD_STRING_PTR
36
37 std::vector<char*> T_STD_VECTOR_CSTRING
38 std::vector<char*>* T_STD_VECTOR_CSTRING_PTR
39
40 All of these mean that the vectors are converted to references to Perl
41 arrays and vice versa.
42
44 These are the overridden methods:
45
46 new
47 Creates a new "ExtUtils::Typemaps::STL::Vector" object. It acts as any
48 other "ExtUtils::Typemaps" object, except that it has the vector type
49 maps initialized.
50
52 ExtUtils::Typemaps, ExtUtils::Typemaps::Default,
53 ExtUtils::Typemaps::ObjectMap, ExtUtils::Typemaps::STL,
54 ExtUtils::Typemaps::STL::String
55
57 Steffen Mueller <smueller@cpan.org>
58
60 Copyright 2010, 2011, 2012, 2013 by Steffen Mueller
61
62 This program is free software; you can redistribute it and/or modify it
63 under the same terms as Perl itself.
64
65
66
67perl v5.32.0 2020-07-28ExtUtils::Typemaps::STL::Vector(3)