MAGE::Base(3pm) | User Contributed Perl Documentation | MAGE::Base(3pm) |
Bio::MAGE::Base - generic base class
use Bio::MAGE::Base; # create an empty instance my $obj = Bio::MAGE::Base->new(); # create an instance and populate with data my $obj = Bio::MAGE::Base->new(attr1=>$val1, attr2=>$val2); # copy an existing instance my $obj_copy = $obj->new();
The base class for all other Bio::MAGE classes
The following methods can all be called without first having an instance of the class via the Namespace::Class->methodname() syntax, i.e. the class name must be given as an argument to the method.
Parameters: if given a list of name/value parameters the corresponding slots, attributes, or associations will have their initial values set by the constructor.
Return value: It returns a reference to an object of the class.
Side effects: It invokes the "initialize()" method if it is defined by the class.
The following methods can all be called with either the Namespace::Class->methodname() and $obj->methodname() syntaxes.
NOTE: the list of names does not include attribute or association names.
Return value: A list of the names of all slots defined for this class.
Side effects: none
These methods must be invoked with the direct object syntax using an existing instance, i.e. $object->method_name().
Parameters: No input parameters are used in the copy constructor, the initial values are taken directly from the object to be copied.
Return value: It returns a reference to an object of the class.
Side effects: It invokes the "initialize()" method if it is defined by the class.
Return value: none
Side effects: will call "croak()" if a slot_name is used that the class does not define.
Return value: a list of instance objects
Side effects: none
Return value: the new value of the slot, i.e. $val
Side effects: none
Return value: a single slot value, or undef if the slot has not been initialized.
Side effects: none
Title : throw Usage : Function: Example : Returns : Args :
Title : throw_not_implemented Usage : Function: Example : Returns : Args :
Please send bug reports to the project mailing list: ()
perl(1).
2020-11-27 | perl v5.32.0 |