ExtUtils::Typemaps::STL::List(3pm)

ExtUtils::Typemaps::STL::List3pm

A set of typemaps for stl std::lists

Usage

  use ExtUtils::Typemaps::STL::List;
  # 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::List->new);
  
  # Now, write the combined map to an output file
  $private_map->write(file => 'typemap');

Overview

"ExtUtils::Typemaps::STL::List" is an "ExtUtils::Typemaps" subclass that provides a set of mappings for C++ STL lists. These are:

  TYPEMAP
  std::list<double>             T_STD_LIST_DOUBLE
  std::list<double>*            T_STD_LIST_DOUBLE_PTR
  
  std::list<int>                T_STD_LIST_INT
  std::list<int>*               T_STD_LIST_INT_PTR
  
  std::list<unsigned int>       T_STD_LIST_UINT
  std::list<unsigned int>*      T_STD_LIST_UINT_PTR
  
  std::list<std::string>        T_STD_LIST_STD_STRING
  std::list<std::string>*       T_STD_LIST_STD_STRING_PTR
  
  std::list<char*>              T_STD_LIST_CSTRING
  std::list<char*>*             T_STD_LIST_CSTRING_PTR

All of these mean that the lists are converted to references to Perl arrays and vice versa.

Methods

These are the overridden methods:

new

Creates a new "ExtUtils::Typemaps::STL::List" object. It acts as any other "ExtUtils::Typemaps" object, except that it has the list type maps initialized.

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9–10
  3. 11
  4. 12–13

Author

Steffen Mueller <[email protected]>

From libextutils-typemaps-default-perl 1.05-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.