-
-
18 Sep 2013 08:28:25 UTC
- Distribution: ExtUtils-XSpp
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (11)
- Testers (7717 / 59 / 1)
- Kwalitee
Bus factor: 1- 82.78% Coverage
- License: perl_5
- Perl: v5.6.1
- Activity
24 month- Tools
- Download (181.08KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Digest::MD5
- ExtUtils::ParseXS
- ExtUtils::Typemaps
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
ExtUtils::XSpp::Node::Enum - Node representing an enum declaration
DESCRIPTION
An ExtUtils::XSpp::Node subclass representing an
enum
declaration. As an exampleenum Bool { FALSE = 0, TRUE };
will create an
ExtUtils::XSpp::Node::Enum
object withname
Bool
and two ExtUtils::XSpp::Node::EnumValue values in thearguments
array.Enumerations do not affect the generated code.
METHODS
new
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.ACCESSORS
name
Returns the name of the enumeration, or
undef
for anonymous enumerations.elements
An array reference containing mostly ExtUtils::XSpp::Node::EnumValue (it can contain other kinds of nodes).
Module Install Instructions
To install ExtUtils::XSpp, copy and paste the appropriate command in to your terminal.
cpanm ExtUtils::XSpp
perl -MCPAN -e shell install ExtUtils::XSpp
For more information on module installation, please visit the detailed CPAN module installation guide.