Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.288.145 Times

Tree::Numbered 2.02

  Date Added: January 10, 2010  |  Visits: 972

Tree::Numbered

Report Broken Link
Printer Friendly Version


Product Homepage
Download (105 downloads)



Tree::Numbered is a thin N-ary tree structure with a unique number for each item. SYNOPSYS use Tree::Numbered; my $tree = Tree::Numbered->new(John Doe); $tree->append(John Doe Jr.); $tree->append(Marry-Jane Doe); while (my $branch = $tree->nextNode) { $branch->delete if ($branch->getValue eq Stuff I dont want); } my $itemId = what_the_DB_says; print join --- , $tree->follow($itemId); # a list of items up to itemId. $tree->allProcess( sub { my $self = shift; $self->getValue =~ /^(S*)/; $self->addField(FirstName, $1); } ); etc. Tree::Numbered is a special N-ary tree with a number for each node. This is useful on many occasions. The first use I found for that (and wrote this for) was to store information about the selected item as a number instead of storing the whole value which is space-expensive. Every tree also has a lucky number of his own that distinguishes it from other trees created by the same module. This module is thin on purpose and is meant to be a base class for stuff that can make use of this behaveiour. For example, I wrote Tree::Numbered::DB which ties a tree to a table in a database, and Javascript::Menu which uses this tree to build menus for websites. One more feature that the module implements for the ease of subclassing it is an API for adding and removing fields from trees and nodes..

Requirements: No special requirements
Platforms: Linux
Keyword: Libraries N-ary N-ary Tree Number Programming Structure Thin Tree Tree Structure Treenumbered Unique Unique Number
Users rating: 0/10

License: Freeware Size: 26.62 KB
USER REVIEWS
More Reviews or Write Review


TREE::NUMBERED RELATED
Libraries  -  Chilkat Class Libraries for Java 9.2.1
The full suite of Chilkat components & libraries are now available for the Java programming language. Commercially licensed components include: Email (POP3 / SMTP) IMAP Zip, GZip, and Unix Compress Encryption MIME and S/MIME FTP HTTP MHT...
 
Development Tools  -  Find optimal FIR Wiener filter for multiple inputs 1.0
MISO_FIRWIENER(N, X, Y) computes the optimal FIR Wiener filter of order N, given any number of (stationary) random input signals as the columns of matrix X, and one output signal in column vector Y.Requires BLOCK_LEVISON.M, also on the file...
10 KB  
Libraries  -  Tree::Binary 0.07
Tree::Binary is a Object Oriented Binary Tree for Perl. SYNOPSIS use Tree::Binary; # a tree representaion of the expression: # ((2 + 2) * (4 + 5)) my $btree = Tree::Binary->new("*") ->setLeft( Tree::Binary->new("+")...
27.65 KB  
Libraries  -  Convert::Number::Digits 0.03
Convert::Number::Digits is a Perl module that convert Digits Between the Scripts of Unicode. SYNOPSIS use utf8; require Convert::Number::Digits; my $number = 12345; my $d = new Convert::Number::Digits ( $number ); print "$number => ",...
5.12 KB  
Utilities  -  GEXEC 0.3.6
GEXEC is a scalable cluster remote execution system which provides fast, RSA authenticated remote execution of parallel and distributed jobs. It provides transparent forwarding of stdin, stdout, stderr, and signals to and from remote processes,...
112.64 KB  
Libraries  -  Lisp::Fmt 0.01
Lisp::Fmt is a Perl module for Common Lisp like formatting. SYNOPSIS use Lisp::Fmt; $str = fmt("~{~a ~5,,,*a~}", $a,$b,$c,$d); # store result in $str pfmt("~{ ~a~5,,,*a~}", $a,$b,$c,$d); # print to stdout The Common Lisp "format" function...
13.31 KB  
Libraries  -  Itzam/Java 1.2.0
Itzam/Java project is a pure Java reimplementation of the Itzam embedded database engine, and it is 100% interoperable with files created by Itzam/Core. Since Itzam/Core is the basis of wrappers written in languages such as C++ and Python,...
112.64 KB  
Libraries  -  Z-Tree Z-MemoryPool Demo 1.0.0
Z-Tree Z-MemoryPool Demo is a simple application showing how to sort huge files of several GB with Z-Tree. ZTree ZMemoryPool Demo also demonstrates how to use Z-tree for key-value mapping. Z-Tree is a new data structure for sorting, key-value...
488.28 KB  
Libraries  -  Set::IntSpan::Fast 0.0.5
Set::IntSpan::Fast is a Perl module for fast handling of sets containing integer spans. SYNOPSIS use Set::IntSpan::Fast; my $set = Set::IntSpan::Fast->new(); $set->add(1, 3, 5, 7, 9); $set->add_range(100, 1_000_000); print...
102.4 KB  
Libraries  -  Perl6::Currying 0.05
Perl6::Currying is a Perl 6 subroutine currying for Perl 5. SYNOPSIS use Perl6::Currying; sub add ($a,$b) { $a + $b } # Define a sub with named params print add(1,2); # Call it my $incr = &add.prebind(a=>1); # Bind the $a argument to 1...
5.12 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB