Pod::Abstract::Tree(3pm) User Contributed Perl Documentation Pod::Abstract::Tree(3pm)NAME
Pod::Abstract::Tree - Manage a level of Pod document tree Nodes.
DESCRIPTION
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.
METHODS
detach
$tree->detach($node);
Unparent the $node from $tree. All other elements will be shifted to fill the empty spot.
push
Add an element to the end of the node list.
pop
Remove an element from the end of the node list.
insert_before
$tree->insert_before($target,$node);
Insert $node before $target. Both must be children of $tree
insert_after
$tree->insert_after($target,$node);
Insert $node after $target. Both must be children of $tree
unshift
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.
children
Returns the in-order node list.
index_relative
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.
AUTHOR
Ben Lilburne <bnej@mac.com>
COPYRIGHT AND LICENSE
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.
perl v5.10.1 2010-01-03 Pod::Abstract::Tree(3pm)
Check Out this Related Man Page
Blt_TreeDeleteNode(3) BLT Library Procedures Blt_TreeDeleteNode(3)__________________________________________________________________________________________________________________________________________________NAME
Blt_TreeDeleteNode - Deletes a node and its descendants.
SYNOPSIS
#include <bltTree.h>
Blt_TreeNode
Blt_TreeDeleteNode(tree, node)
ARGUMENTS
Blt_Tree tree (in) Tree containing the node.
Blt_TreeNode node (in) Node to be deleted.
_________________________________________________________________DESCRIPTION
This procedure deletes a given node and all it descendants from a tree data object.
The arguments are as follows:
tree The tree containing the parent node.
node Node to be deleted. The node and its descendant nodes are deleted. Each node's data values are deleted also. The reference
count of the Tcl_Obj is decremented.
Since all tree objects must contain at least a root node, the root node itself can't be deleted unless the tree is released and destroyed.
Therefore you can clear a tree by deleting its root, but the root node will remain until the tree is destroyed.
RETURNS
Always returns TCL_OK. Errors generated in a notification callbacks are backgrounded (see Tcl_TreeCreateNotifyHandler).
EXAMPLE
The following example deletes the root node.
Blt_TreeNode root;
root = Blt_TreeRootNode(token);
Blt_TreeDeleteNode(token, root);
NOTIFICATIONS
Blt_TreeDeleteNode can trigger tree notify events. You can be notified whenever a node is deleted by using the Blt_TreeCreateNotifyHan-
dler. A callback routine is registered that will be automatically invoked whenever a node is deleted via Blt_TreeDeleteNode to the tree.
KEYWORDS
tree, token
BLT 2.4 Blt_TreeDeleteNode(3)
I m not able to copy the text present on the tree's node to terminal or other text editor in solaris. I m using <Shift><control> C and V comaand for the same but the text is not being copied and pasted on the text pad or the terminal window.
While the same is possible in windows OS using ctrl+c... (2 Replies)
Hi,
I want to list all the last directories from mentioned base path.
for eg: If i have a base path say /base/base1/
How can i get the path till last node in tree like directory structure of unix by applying any command.
so that i will get following output.
... (7 Replies)
I have a list of software funtions in tcl code. Some of these functions call other functions. I want to build a tree structure of all called functions.
Right now I list all the functions into a file then read this file so that I can cat each function and grep for EXECUTE (command that calls... (0 Replies)
hi all
i have a tree structure:
root --- node 1 to node 10
in each node --- sub node 1 to sub node 10
in each sub node --- leaf node 1 to leaf node 10
i have to print this in following fashion:
root ---- n1 ---- sn1 ---- l1, l2, l3, ....., l10
n1 ---- sn2 ---- l1, l2, l3,... (2 Replies)
Hi, I am new to C++ and unix. I am trying to write a programm for inserting elements into a binary tree. To get the code flow I used few Couts and m facing buss error while insertion.
Below is the code snippet. explainations needed. thanks :)
#include <iostream.h>
struct mytree
{
int... (1 Reply)
If i have a linked list in C, how do I edit a node in it? Without ruining the whole list, by this i mean end up making it null or circular... (since it has to be linear and has to stop somewhere):wall:
Can some one provide an example, making it have like 5 nodes, and then edit a string of the... (3 Replies)
Hi all, hoping this is a simple one, tried looking but just can't see the solution
As an example I've got a list of words that all start Ben.....
Bendicks
Benefiber
Ben
Benylin
I need to only change the line Ben with Ben 10, ignoring the other lines.
I tried the following
... (1 Reply)
So I'm in a Unix class and our assignment was to go into VI and write a script to make this file tree. At the end of it, I'd like it to echo "This is the file tree you've created" then a line break, then . But I'm not sure as to who to do it. Is there a way for when I run it (./filesystem), the... (4 Replies)
hello i have a project that i have to create a captcha
can someone please help me do this in my mac terminal im a beginner tell me the steps to do this?
in public_html, create a file named ".htaccess" with the following content:
AuthType Basic
AuthName "CIS440"
AuthBasicProvider... (3 Replies)
Medel : 9117-MMC
OS: AIX 6.1
Patch level : 6100-07-04-1216
Hacmp version : HACMP v 6.1.0.8
Oracle : 11.2.0.3 RAC
Node : 2 node
Dear, my one node server has been restarted early this morning, So, i tried to start HA and Oracle database.
after that, the follow error appears at the node... (1 Reply)