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
Tree::Binary::Search::Node(3) User Contributed Perl Documentation Tree::Binary::Search::Node(3)

Tree::Binary::Search::Node - A node for a Tree::Binary::Search tree

  use Tree::Binary::Search::Node;

This is a subclass of Tree::Binary and is mostly used by Tree::Binary::Search.

new ($node_key, $node_value)
The constructor takes a $node_key and a $node_value. The key is used by Tree::Binary::Search to order the nodes in the tree. Both arguments are required, and exception is thrown if they are not present.
getNodeKey
Returns the node key as set in the constructor. Node keys are write-once-read-only values, if you could change the node key, it would mess up the entire search tree.
makeRoot
This is used by Tree::Binary::Search when it need to re-root a tree due to a deletion.
clone
Makes sure that the node key is cloned as well.

Reference node keys
Right now, there is nothing preventing you from using anything you want as a node key as long as you create the proper comparison function in Tree::Binary::Search. I would like to test this more, and possibly write some code to faciliate it.

None that I am aware of. Of course, if you find a bug, let me know, and I will be sure to fix it.

See the CODE COVERAGE section of Tree::Binary for details.

<https://github.com/ronsavage/Tree-Binary>

stevan little, <stevan@iinteractive.com>

Copyright 2004, 2005 by Infinity Interactive, Inc.

<http://www.iinteractive.com>

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

2016-07-15 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.