Tree::Binary::Search::NodeTree::Binary::Search::Node is a node for a Tree::Binary::Search tree. | |
Download |
Tree::Binary::Search::Node Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Stevan Little
- Publisher web site:
- http://search.cpan.org/~stevan/Devel-StrictObjectHash-0.01/lib/Devel/StrictObjectHash.pm
Tree::Binary::Search::Node Tags
Tree::Binary::Search::Node Description
Tree::Binary::Search::Node is a node for a Tree::Binary::Search tree. Tree::Binary::Search::Node is a node for a Tree::Binary::Search tree.SYNOPSIS use Tree::Binary::Search::Node;This is a subclass of Tree::Binary and is mostly used by Tree::Binary::Search.METHODSnew ($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.getNodeKeyReturns 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.makeRootThis is used by Tree::Binary::Search when it need to re-root a tree due to a deletion.cloneMakes sure that the node key is cloned as well. Requirements: · Perl
Tree::Binary::Search::Node Related Software