ExtUtils::Typemap::STL::Vector - A set of typemaps for STL std::vectors
use ExtUtils::Typemap::STL::Vector; # First, read my own type maps: my $private_map = ExtUtils::Typemap->new(file => 'my.map'); # Then, get the object map set and merge it into my maps $private_map->merge(typemap => ExtUtils::Typemap::STL::Vector->new); # Now, write the combined map to an output file $private_map->write(file => 'typemap');
ExtUtils::Typemap::STL::Vector is an
ExtUtils::Typemap subclass that provides a set of mappings for C++ STL vectors. These are:
TYPEMAP std::vector<double> T_STD_VECTOR_DOUBLE std::vector<double>* T_STD_VECTOR_DOUBLE_PTR std::vector<int> T_STD_VECTOR_INT std::vector<int>* T_STD_VECTOR_INT_PTR std::vector<unsigned int> T_STD_VECTOR_UINT std::vector<unsigned int>* T_STD_VECTOR_UINT_PTR std::vector<std::string> T_STD_VECTOR_STD_STRING std::vector<std::string>* T_STD_VECTOR_STD_STRING_PTR std::vector<char*> T_STD_VECTOR_CSTRING std::vector<char*>* T_STD_VECTOR_CSTRING_PTR
All of these mean that the vectors are converted to references to Perl arrays and vice versa.
These are the overridden methods:
Creates a new
ExtUtils::Typemap::STL::Vector object. It acts as any other
ExtUtils::Typemap object, except that it has the string type maps initialized.
Steffen Mueller <firstname.lastname@example.org>
Copyright 2010 by Steffen Mueller
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.