ExtUti...Member(3pm)
β¨ NAME β¨
ExtUtils::XSpp::Node::Member β it's the node that represents a class member variable, bestie π
π¦ DESCRIPTION π¦
Okay so picture this: ExtUtils::XSpp::Node::Member is a sub-class of ExtUtils::XSpp::Node, and its whole entire job is representing one single member variable inside a class. Like one of these cuties:
class FooBar {
int foo; // <-- this one
}
See that int foo;? Yeah. That's the vibe. That's the member. π
But here's the thing you actually need to know, and I'm not gonna gatekeep it: member declarations are literally invisible to the XS code generator. They produce no XS code at all unless you decorate them with either %get or %set. No decoration, no code. Periodt. π
πΈ METHODS πΈ
π new
Makes you a brand new ExtUtils::XSpp::Node::Member. Fresh out the box, main character energy.
Named parameters you can pass in, and yes you need the names:
cpp_nameβ the C++ name of the memberperl_nameβ the Perl name of the member. If you don't say anything, it just defaults to the same thing ascpp_nameπ«Άtypeβ the (C++) type of the memberclassβ and finally, this one's anExtUtils::XSpp::Node::Class
π₯ resolve_typemaps
Goes and fetches the ExtUtils::XSpp::Typemap object for the type, straight from the typemap registry, and then stores a reference to that object. It's giving errand runner. It slays. β¨
π ACCESSORS π
π cpp_name
Returns the C++ name of the member. That's it. That's the whole function.
π perl_name
Returns the Perl name of the member β and if nobody set one, it defaults to the same as the C++ one. Twin behavior fr fr.
π set_perl_name
Sets the Perl name of the member. Now you get to pick it yourself, iconic.
β type
Returns the C++ type for the member.
π§ class
Returns the class β an ExtUtils::XSpp::Node::Class β that the member belongs to. Found family moment.
π access
Returns 'public', 'protected' or 'private', depending on the member's access declaration. Choose your fighter.
π typemap
Returns the typemap for the member type.
π set_typemap( typemap )
Sets the typemap for the member type. Pass it in, it goes in.
That's the whole page, no cap! Everything you just read is from the ExtUti...Member(3pm) page β User Contributed Perl Documentation, perl v5.40.1, dated 2026-07-03. Bye bestie, go write some XS πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: libextutils-xspp-perl 0.1900-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms