Boilerplater::Type::Boilerplater - An object Type.
Boilerplater::Type::Object supports object types for all classes. The type's specifier must match the last component of the class name -- i.e. for the class "Crustacean::Lobster" it must be "Lobster".
specifier
my $type = Boilerplater::Type::Object->new( specifier => "Obj", # required parcel => "Boil", # default: the default Parcel. const => undef, # default undef indirection => 1, # default 1 incremented => 1, # default 0 decremented => 0, # default 0 );
specifier - Required. Must follow the rules for Boilerplater::Class class name components.
parcel - A Boilerplater::Parcel or a parcel name.
const - Should be true if the Type is const. Note that this refers to the object itself and not the pointer.
indirection - Level of indirection. Must be 1 if supplied.
incremented - Indicate whether the caller must take responsibility for an added refcount.
decremented - Indicate whether the caller must account for for a refcount decrement.
The Parcel's prefix will be prepended to the specifier by new().
Returns true if the Type is incremented.
Returns true if the Type is decremented.
Copyright 2008-2009 Marvin Humphrey
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install KSx::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm KSx::Simple
CPAN shell
perl -MCPAN -e shell install KSx::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.