™.. Data::Grove - Online Linux Manual PageSection : 3
Updated : 2003-10-21
Source : perl v5.10.1
Note : User Contributed Perl Documentation
NAMEData::Grove −− support for deeply nested structures
SYNOPSIS use Data::Grove;
$object = MyPackage−>new;
package MyPackage;
@ISA = qw{Data::Grove};
DESCRIPTION\*(C`Data::Grove\*(C'\fR provides support for deeply nested tree or graph structures. \*(C`Data::Grove\*(C'\fR is intended primarily for Perl module authors writing modules with many types or classes of objects that need to be manipulated and extended in a consistent and flexible way. \*(C`Data::Grove\*(C'\fR is best used by creating a core set of ``data'' classes and then incrementally adding functionality to the core data classes by using ``extension'' modules. One reason for this design is so that the data classes can be swapped out and the extension modules can work with new data sources. For example, these other data sources could be disk-based, network-based or built on top of a relational database. Two extension modules that come with \*(C`Data::Grove\*(C'\fR are \*(C`Data::Grove::Parent\*(C'\fR and \f(CW\*(C`Data::Grove::Visitor\*(C'\fR. \*(C`Data::Grove::Parent\*(C'\fR adds a `\f(CW\*(C`Parent\*(C'\fR' property to grove objects and implements a `\*(C`root\*(C'\fR' method to grove objects to return the root node of the tree from anywhere in the tree and a `\*(C`rootpath\*(C'\fR' method to return a list of nodes between the root node and ``this'' node. \*(C`Data::Grove::Visitor\*(C'\fR adds callback methods `\f(CW\*(C`accept\*(C'\fR' and `\*(C`accept_name\*(C'\fR' that call your handler or receiver module back by object type name or the object's name. \*(C`Data::Grove\*(C'\fR objects do not contain parent references, Perl garbage collection will delete them when no longer referenced and sub-structures can be shared among several structures. \*(C`Data::Grove::Parent\*(C'\fR is used to create temporary objects with parent pointers. Properties of data classes are accessed directly using Perl's hash functions (i.e. `\*(C`$object\->{Property}\*(C'\fR'). Extension modules may also define properties that they support or use, for example Data::Grove::Parent adds `\*(C`Parent\*(C'\fR' and `\f(CW\*(C`Raw\*(C'\fR' properties and Visitor depends on `\*(C`Name\*(C'\fR' and `\f(CW\*(C`Content\*(C'\fR' properties. See the module \*(C`XML::Grove\*(C'\fR for an example implementation of \*(C`Data::Grove\*(C'\fR.
METHODSnew( PROPERTIES ) Return a new object blessed into the SubClass, with the given properties. PROPERTIES may either be a list of key/value pairs, a single hash containing key/value pairs, or an existing \*(C`Data::Grove\*(C'\fR object. If an existing \*(C`Data::Grove\*(C'\fR is passed to `\f(CW\*(C`new()\*(C'\fR', a shallow copy of that object will be returned. A shallow copy means that you are returned a new object, but all of the objects underneath still refer to the original objects.
AUTHORKen MacLeod, ken@bitsko.slc.ut.us
SEE ALSOperl (1) 0
Johanes Gumabo
Data Size : 9,993 byte
man-Data::Grove.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 5 / 165,129
Visitor ID : :
Visitor IP : 3.22.130.228 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|Data::Grove.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Data::Grove.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|Data::Grove.3pm|41|br══─}─══|'br══─}─══
) (htmlprn|149|Data::Grove.3pm|41|'br══─}─══ |'br══─}─══
) (rof_nr_x|149|Data::Grove.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (rof_unit_scale_px|41|Data::Grove.3pm|51/52|F|.ie \nF ══─{─══. de IX
) (rof_if|19|Data::Grove.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (htmlprn|149|Data::Grove.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX
) (rof_escape_sequence|91|Data::Grove.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2"
) (parse_manual_page_|249|Data::Grove.3pm|57|══─}─══|.══─}─══
) (htmlprn|149|Data::Grove.3pm|57|.══─}─══ |.══─}─══
) (rof_escape_sequence|91|Data::Grove.3pm|146|\*(C`Data::Grove\*(C'\fR provides support for deeply nested tree or graph |\&\f(CW\*(C`Data::Grove\*(C'\fR provides support for deeply nested tree or graph
) (rof_escape_sequence|91|Data::Grove.3pm|147|\*(C`Data::Grove\*(C'\fR is intended primarily for Perl module |structures. \f(CW\*(C`Data::Grove\*(C'\fR is intended primarily for Perl module
) (rof_escape_sequence|91|Data::Grove.3pm|151|\*(C`Data::Grove\*(C'\fR is best used by creating a core set of ``data'' classes |\&\f(CW\*(C`Data::Grove\*(C'\fR is best used by creating a core set of ``data'' classes
) (rof_escape_sequence|91|Data::Grove.3pm|158|\*(C`Data::Grove\*(C'\fR are |Two extension modules that come with \f(CW\*(C`Data::Grove\*(C'\fR are
) (rof_escape_sequence|91|Data::Grove.3pm|159|\*(C`Data::Grove::Parent\*(C'\fR and \f(CW\*(C`Data::Grove::Visitor\*(C'\fR. |\&\f(CW\*(C`Data::Grove::Parent\*(C'\fR and \f(CW\*(C`Data::Grove::Visitor\*(C'\fR.
) (rof_escape_sequence|91|Data::Grove.3pm|160|\*(C`Data::Grove::Parent\*(C'\fR adds a `\f(CW\*(C`Parent\*(C'\fR' property to grove objects |\&\f(CW\*(C`Data::Grove::Parent\*(C'\fR adds a `\f(CW\*(C`Parent\*(C'\fR' property to grove objects
) (rof_escape_sequence|91|Data::Grove.3pm|161|\*(C`root\*(C'\fR' method to grove objects to return the root |and implements a `\f(CW\*(C`root\*(C'\fR' method to grove objects to return the root
) (rof_escape_sequence|91|Data::Grove.3pm|162|\*(C`rootpath\*(C'\fR' method |node of the tree from anywhere in the tree and a `\f(CW\*(C`rootpath\*(C'\fR' method
) (rof_escape_sequence|91|Data::Grove.3pm|164|\*(C`Data::Grove::Visitor\*(C'\fR adds callback methods `\f(CW\*(C`accept\*(C'\fR' and |\&\f(CW\*(C`Data::Grove::Visitor\*(C'\fR adds callback methods `\f(CW\*(C`accept\*(C'\fR' and
) (rof_escape_sequence|91|Data::Grove.3pm|165|\*(C`accept_name\*(C'\fR' that call your handler or receiver module back by |`\f(CW\*(C`accept_name\*(C'\fR' that call your handler or receiver module back by
) (rof_escape_sequence|91|Data::Grove.3pm|168|\*(C`Data::Grove\*(C'\fR objects do not contain parent references, Perl garbage |\&\f(CW\*(C`Data::Grove\*(C'\fR objects do not contain parent references, Perl garbage
) (rof_escape_sequence|91|Data::Grove.3pm|171|\*(C`Data::Grove::Parent\*(C'\fR is used to create temporary objects with parent |\&\f(CW\*(C`Data::Grove::Parent\*(C'\fR is used to create temporary objects with parent
) (rof_escape_sequence|91|Data::Grove.3pm|175|\*(C`$object\->{Property}\*(C'\fR'). Extension modules may |functions (i.e. `\f(CW\*(C`$object\->{Property}\*(C'\fR'). Extension modules may
) (rof_escape_sequence|91|Data::Grove.3pm|177|\*(C`Parent\*(C'\fR' and `\f(CW\*(C`Raw\*(C'\fR' properties and |Data::Grove::Parent adds `\f(CW\*(C`Parent\*(C'\fR' and `\f(CW\*(C`Raw\*(C'\fR' properties and
) (rof_escape_sequence|91|Data::Grove.3pm|178|\*(C`Name\*(C'\fR' and `\f(CW\*(C`Content\*(C'\fR' properties. |Visitor depends on `\f(CW\*(C`Name\*(C'\fR' and `\f(CW\*(C`Content\*(C'\fR' properties.
) (rof_escape_sequence|91|Data::Grove.3pm|180|\*(C`XML::Grove\*(C'\fR for an example implementation of |See the module \f(CW\*(C`XML::Grove\*(C'\fR for an example implementation of
) (rof_escape_sequence|91|Data::Grove.3pm|181|\*(C`Data::Grove\*(C'\fR. |\&\f(CW\*(C`Data::Grove\*(C'\fR.
) (rof_escape_sequence|91|Data::Grove.3pm|188|\*(C`Data::Grove\*(C'\fR |single hash containing key/value pairs, or an existing \f(CW\*(C`Data::Grove\*(C'\fR
) (rof_escape_sequence|91|Data::Grove.3pm|189|\*(C`Data::Grove\*(C'\fR is passed to `\f(CW\*(C`new()\*(C'\fR', a |object. If an existing \f(CW\*(C`Data::Grove\*(C'\fR is passed to `\f(CW\*(C`new()\*(C'\fR', a
)