Query: class::makemethods::template::ref
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MakeMethods::Template::Ref(3pm) User Contributed Perl Documentation MakeMethods::Template::Ref(3pm)NAMEClass::MakeMethods::Template::Ref - Universal copy and compare methodsSYNOPSISpackage MyObject; use Class::MakeMethods::Template::Ref ( 'Hash:new' => [ 'new' ], clone => [ 'clone' ] ); package main; my $obj = MyObject->new( foo => ["Foozle", "Bozzle"] ); my $clone = $obj->clone(); print $obj->{'foo'}[1];DESCRIPTIONThe following types of methods are provided via the Class::MakeMethods interface: clone Produce a deep copy of an instance of almost any underlying datatype. Parameters: init_method If defined, this method is called on the new object with any arguments passed in. prototype Create new instances by making a deep copy of a static prototypical instance. Parameters: init_method If defined, this method is called on the new object with any arguments passed in. compare Compare one object to another. Templates o default Three-way (sorting-style) comparison. o equals Are these two objects equivalent? o identity Are these two references to the exact same object?SEE ALSOSee Class::MakeMethods for general information about this distribution. See Class::MakeMethods::Template for more about this family of subclasses. See Class::MakeMethods::Utility::Ref for the clone and compare functions used above. perl v5.10.1 2004-09-06 MakeMethods::Template::Ref(3pm)
Similar Topics in the Unix Linux Community |
---|
ChibiTracker 1.2 (Default branch) |
How to clone a 382-workstations hdd? |
Samba broken on clone Ubuntu |
AutoSys |
How to clone an AIX 5.3? |