---
name: "ExtUtils::XSpp::Typemap"
section: "3pm"
platform: "linux"
package: "libextutils-xspp-perl"
version: "0.1800-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ExtUtils::XSpp::Typemap"
---

# ExtUtils::XSpp::Typemap(3pm)

map types

## NAME

ExtUtils::XSpp::Typemap - map types

## METHODS

### ExtUtils::XSpp::Typemap::type

Returns the ExtUtils::XSpp::Node::Type that is used for this typemap.

### ExtUtils::XSpp::Typemap::xs\_type()

(Optional) XS typemap identifier (e.g. T\_IV) for this C++ type.

### ExtUtils::XSpp::Typemap::xs\_input\_code()

(Optional) XS input code for the associated XS typemap.

### ExtUtils::XSpp::Typemap::xs\_output\_code()

(Optional) XS output code for the associated XS typemap.

### ExtUtils::XSpp::Typemap::cpp\_type()

Returns the C++ type to be used for the local variable declaration.

### ExtUtils::XSpp::Typemap::input\_code( perl\_argument\_name, cpp\_var\_name1, ... )

Code to put the contents of the perl\_argument (typically ST(x)) into the C++ variable(s).

### ExtUtils::XSpp::Typemap::output\_code( perl\_variable, c\_variable )

### ExtUtils::XSpp::Typemap::cleanup\_code( perl\_variable, c\_variable )

### ExtUtils::XSpp::Typemap::call\_parameter\_code( parameter\_name )

### ExtUtils::XSpp::Typemap::call\_function\_code( function\_call\_code, return\_variable )

Allows modifying the code used in the function/method call.  The first parameter has the form `"THIS-"`method( \<args\> )\>, the second parameter is a variable to hold the return value.
