GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ExtUtils::XSpp::Node::Enum(3) User Contributed Perl Documentation ExtUtils::XSpp::Node::Enum(3)
 

ExtUtils::XSpp::Node::Enum - Node representing an enum declaration

An ExtUtils::XSpp::Node subclass representing an "enum" declaration. As an example
    enum Bool
    {
        FALSE = 0,
        TRUE
    };
will create an "ExtUtils::XSpp::Node::Enum" object with "name" "Bool" and two ExtUtils::XSpp::Node::EnumValue values in the "arguments" array.
Enumerations do not affect the generated code.

    my $e = ExtUtils::XSpp::Node::Enum->new( name     => 'Bool',
                                             elements => [ ... ],
                                             );
Creates a new "ExtUtils::XSpp::Node::Enum".
"name" gives the name of the enumeration, "undef" for anonymous enumerations. "elements" should only contain ExtUtils::XSpp::Node::EnumValue or ExtUtils::XSpp::Node::Raw objects.

Returns the name of the enumeration, or "undef" for anonymous enumerations.

An array reference containing mostly ExtUtils::XSpp::Node::EnumValue (it can contain other kinds of nodes).
2019-01-01 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.