$desc
Creat a new empty tree.
Insert an entry into the tree. If there are any entries with the same key size, insert the new one after them.
Insert an entry into the tree. If there are any entries with the same key size, insert the new one before them.
Delete one entry whose key is equal to \$key. If there ary more than one entry with the same key size, delete the last inserted one.
Delete one entry whose key is equal to \$key. If there ary more than one entry with the same key size, delete the first inserted one.
Get the number of entries in the tree
Get entries with key sizes equal to \$key, from the first inserted one to the last inserted one.
The optional \$limit (default 1) indicates the maximum entry number you will get, \$limit=-1 means unlimited.
Get entries with key sizes equal to \$key, from the last inserted one to the first inserted one.
Get entries, whose keys are smaller than \$key, from the largest entry.
Get entries, whose keys are smaller than or equal to \$key, from the largest entry.
Get entries, whose keys are greater than \$key, from the smallest one.
Get entries, whose keys are greater than or equal to \$key, from the smallest one.
Get entries, whose keys are greater than \$lower_key and smaller than \$upper_key, from the smallest one to the largest one.
Get entries, whose keys are greater than \$lower_key and smaller than or equal to \$upper_key, from the smallest one to the largest one.
Get entries, whose keys are greater than or equal to \$lower_key and smaller than \$upper_key, from the smallest one to the largest one.
Get entries, whose keys are greater than or equal to \$lower_key and smaller than or equal to \$upper_key, from the smallest one to the largest one.
Get entries from the one with smallest key. If there are more than one entries with smallest key, begin from the first inserted one.
Get entries from the one with largest key. If there are more than one entries with smallest key, begin from the last inserted one.
Get the first entry from one with the smallest key after skipping \$offset entries.
Get the first entry from one with the largest key after skipping \$offset entries.
Get the number of entries whose keys are smaller than \$key.
Get the number of entries whose keys are smaller than or equal to \$key.
Get the number of entries whose keys are greater than \$key.
Get the number of entries whose keys are greater than or equal to \$key.
Get a string which represent the whole tree structure. For debug use.
Check the tree property. For debug use.
Get the maximum height the tree has ever been. For debug use
To install Tree::SizeBalanced, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tree::SizeBalanced
CPAN shell
perl -MCPAN -e shell install Tree::SizeBalanced
For more information on module installation, please visit the detailed CPAN module installation guide.