GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Pod::Abstract::Tree(3) User Contributed Perl Documentation Pod::Abstract::Tree(3)

Pod::Abstract::Tree - Manage a level of Pod document tree Nodes.

Pod::Abstract::Tree keeps track of a set of Pod::Abstract::Node elements, and allows manipulation of that list of elements. Elements are stored in an ordered set - a single node can appear once only in a single document tree, so inserting a node at a point will also remove it from it's previous location.

This is an internal class to Pod::Abstract::Node, and should not generally be used externally.

 $tree->detach($node);

Unparent the $node from $tree. All other elements will be shifted to fill the empty spot.

Add an element to the end of the node list.

Remove an element from the end of the node list.

 $tree->insert_before($target,$node);

Insert $node before $target. Both must be children of $tree

 $tree->insert_after($target,$node);

Insert $node after $target. Both must be children of $tree

Remove the first node from the node list and return it.

Unshift takes linear time - it has to relocate every other element in id_map so that they stay in line.

Returns the in-order node list.

 my $node = $tree->index_relative($target, $offset);

This method will return a node at an offset of $offset (which may be negative) from this tree structure. If there is no such node, undef will be returned. For example, an offset of 1 will give the following element of $node.

Ben Lilburne <bnej@mac.com>

Copyright (C) 2009 Ben Lilburne

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2010-01-03 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.