NAME
ExtUtils::Typemaps::STL::Vector - A set of typemaps for STL std::vectors
SYNOPSIS
use ExtUtils::Typemaps::STL::Vector;# First, read my own type maps:my $private_map = ExtUtils::Typemaps->new(file => 'my.map');# Then, get the object map set and merge it into my maps$private_map->merge(typemap => ExtUtils::Typemaps::STL::Vector->new);# Now, write the combined map to an output file$private_map->write(file => 'typemap');
DESCRIPTION
"ExtUtils::Typemaps::STL::Vector" is an "ExtUtils::Typemaps" subclass that provides a set of mappings for C++ STL vectors. These are:
TYPEMAPstd::vector<double> T_STD_VECTOR_DOUBLEstd::vector<double>* T_STD_VECTOR_DOUBLE_PTRstd::vector<int> T_STD_VECTOR_INTstd::vector<int>* T_STD_VECTOR_INT_PTRstd::vector<unsigned int> T_STD_VECTOR_UINTstd::vector<unsigned int>* T_STD_VECTOR_UINT_PTRstd::vector<std::string> T_STD_VECTOR_STD_STRINGstd::vector<std::string>* T_STD_VECTOR_STD_STRING_PTRstd::vector<char*> T_STD_VECTOR_CSTRINGstd::vector<char*>* T_STD_VECTOR_CSTRING_PTR
All of these mean that the vectors are converted to references to Perl arrays and vice versa.
METHODS
These are the overridden methods:
new
Creates a new "ExtUtils::Typemaps::STL::Vector" object. It acts as any other "ExtUtils::Typemaps" object, except that it has the vector type maps initialized.
SEE ALSO
ExtUtils::Typemaps, ExtUtils::Typemaps::Default, ExtUtils::Typemaps::ObjectMap, ExtUtils::Typemaps::STL, ExtUtils::Typemaps::STL::String
AUTHOR
Steffen Mueller <[email protected]>
COPYRIGHT AND LICENSE
Copyright 2010, 2011, 2012, 2013 by Steffen Mueller
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.