NAME
Clownfish::ParamList - parameter list.
DESCRIPTION
METHODS
new
my $type = Clownfish::ParamList->new(
variables => \@vars, # required
initial_values => \@vals, # default: undef
variadic => 1, # default: false
);
variables - An array where each element is a Clownfish::Variable.
initial_values - If supplied, an array of default values, one for each variable.
variadic - Should be true if the function is variadic.
get_variables get_initial_values variadic
Accessors.
num_vars
Return the number of variables in the ParamList, including "self" for methods.
to_c
# Prints "Obj* self, Foo* foo, Bar* bar".
print $param_list->to_c;
Return a list of the variable's types and names, joined by commas.
name_list
# Prints "self, foo, bar".
print $param_list->name_list;
Return the variable's names, joined by commas.
COPYRIGHT AND LICENSE
Copyright 2008-2010 Marvin Humphrey
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.