|
|
|
|
Download Now GPL (GNU General Public License) Downloads till now: 12 |
| Last Update: | 2008-04-06 23:15:33 |
| Version: | tree.hh 2.51 |
| License/Program Type: | GPL (GNU General Public License) |
| Publisher: | Kasper Peeters |
| Price: | $0.00 |
tree.hh is a general purpose templated tree class for C++ in the spirit of the STL, and compatible with the STL algorithms.
Simple example:
The following program constructs a tree of std::string nodes, puts some content in it and applies the find algorithm to find the node with content "two". It then prints the content of all the children of this node. You can download the source tree_example.cc if you're too lazy to type it in.
include < algorithm >
include < string >
include < iostream >
include "tree.hh"
using namespace std;
int main(int, char )
{
tree< string > tr;
tree< string >::iterator top, one, two, loc, banana;
top=tr.begin();
one=tr.insert(top, "one");
two=tr.append_child(one, "two");
tr.append_child(two, "apple");
banana=tr.append_child(two, "banana");
tr.append_child(banana,"cherry");
tr.append_child(two, "peach");
tr.append_child(one,"three");
loc=find(tr.begin(), tr.end(), "two");
if(loc!=tr.end()) {
tree< string >::sibling_iterator sib=tr.begin(loc);
while(sib!=tr.end(loc)) {
cout
| Product | Date Added |
|---|---|
| tree hh tree.hh 2.51 | 2008-04-06 23:15:33 |
Esra |
From category: Libraries |
| Esra 0.8.0 is libraries software developed by Esra Team. Esra is a pure Java library for the interactive analysis of molecular mechanics data. Esra is a lean and mean library of portable, fl... | |
Apache Traffic |
From category: Perl-Modules |
| Apache::Traffic is a Perl module that tracks hits and bytes transferred on a per-user basis.... | |
DBIx::Wrapper::Config |
From category: Libraries |
| DBIx::Wrapper::Config 0.01 is libraries software developed by Don Owens. DBIx::Wrapper::Config Perl module allows the use of a configuration file in XML specifying information required to connect t... | |
dragList |
From category: Libraries |
| dragList 0.5.1 is libraries software developed by DTLink Software, LLC. DragList is a client side Drag and Drop Ordered Lists implementation. dragList library allows you to order a list of items... | |
CfgTie::TieNet |
From category: Libraries |
| CfgTie::TieNet 0.41 is libraries software developed by Randall Maas. CfgTie::TieNet is a Perl module to tie in the net database. SYNOPSIS tie %net,\'CfgTie::TieNet\' Th... | |
CLAM |
From category: Widgets |
| CLAM is a multiplatform software framework for research and application development for the Audio and Music domains.... | |
C_Sane |
From category: Libraries |
| C_Sane 1.0.0 is libraries software developed by Francesco Bradascio. C_Sane is a C++ wrapper for the SANE library. Requirements: SANE 1.0.4 C_Sane 1.0.0 supports english interface langua... | |
CGI::Application::Plugin::RateLimit |
From category: Libraries |
| CGI::Application::Plugin::RateLimit 1.0 is libraries software developed by Sam Tregar. CGI::Application::Plugin::RateLimit is a plugin for CGI::Application which provides protection against a user... | |
Eleven |
From category: Compilers |
| Eleven 1.0 is compilers software developed by Joe Morrison. Eleven is a programming language for creating robust, scalable web applications quickly and easily. It offers a 20x programmer pro... | |
eTraxis |
From category: Bug-Tracking |
| eTraxis is a free web-based bug tracking system with unlimited number of custom workflow templates.... | |
Data::ICal::Entry::Alarm::Audio |
From category: Libraries |
| Data::ICal::Entry::Alarm::Audio 0.07 is libraries software developed by Jesse Vincent. Data::ICal::Entry::Alarm::Audio represents an audio alarm in an iCalendar file. SYNOPSIS my... | |
DEMOS |
From category: Code-Generators |
| DEMOS 0.9.1 is code generators software developed by DASCOM Project. DEMOS is a modeling tool for the EP model. The EP model proposes a declarative executable model for engineering object-based sys... | |
EB::Shell::Base |
From category: Libraries |
| EB::Shell::Base 1.01.02 is libraries software developed by Darren Chamberlain. EB::Shell::Base is a generic class to build line-oriented command interpreters. SYNOPSIS package My::S... | |
diet libc |
From category: Libraries |
| diet libc 0.30 is libraries software developed by Felix von Leitner. diet libc contains the system call wrappers and the most commonly-used functions you expect from a libc. diet libc can be... | |
firescope |
From category: Debuggers |
| firescope 0.1 is debuggers software developed by Andi Kleen. firescope is a port of Ben Herrenschmidt\'s firescope tool to i386/x86-64 Linux with many additional changes. firescope allows you to re... | |
| 1. Able Fax Tif View |
| Able Fax Tif View is a FAX, TIF, PDF, EPS, PS, AI, DCX, DICO... |
| 2. Access Manager for Windows |
| Access Manager for Windows is a feature-rich software that a... |
| 3. Vista User Time Manager |
| Vista User Time Manager is a powerful software that enables ... |
| 4. River Past Video Cleaner |
| River Past Video Cleaner is an easy-to-use, flexible, powerf... |
| 5. Tube Explorer Lite |
| Tube Explorer Lite is a smart tool that will help you browse... |
| 6. Convert MPEG To WMV |
| EZ MPEG To WMV Converter is an easy to use video conversion ... |
| 7. Convert Video To AVI |
| EZ Video TO AVI Converter has a powerful media conversion en... |
| 8. A-one Video Convertor |
| A-one video converter is a powerful tool that offers you an ... |
| 9. ALPass |
| ALPass is a smart tool that allows you to automatically logi... |
| 10. Smart Pix Manager |
| Smart Pix Manager is a powerful, feature-rich and user-frien... |
| 1. Google Chrome – It’s Finally Here. Will A Revolution Begin? |
| First, it was the rumors. Then, Google announced it official... |
| 2. An Amazing Free Document Processing Software: LyX |
| The documents management task could be difficult in absence ... |
| 3. DownloadTube Toolbar is Available For Free Download |
| Recently, we have made available for free download the Dow... |
| 4. A Revolution in Web Browsing: The New Firefox 3.1b1 Already Beats All Speed Records |
| The latest beta1 release of Mozilla Firefox 3.1 shows majo... |
| 5. Some Little, Nice, Freeware Tools You May Never Know When You'll Need |
| This time I won’t speak about a single freeware program that... |
| 6. How To Increase The Quality of Your News Articles For Search Engine Spiders |
| The process of articles publishing is a common practice to... |
| 7. Digg in Press: Tips and Opinions |
| Regarding Digg social bookmarking service there are many a... |
| 8. Ubuntu Linux and Windows Can Share The Desktop In Absence Of Virtual Machines |
| Many people asked themselves how to run Ubuntu Linux and W... |
| 9. 2.5 Millions Downloads for FireTune: It Makes Mozilla Firefox To Run With The Speed of Light |
| It is well known the fact that even the latest version of M... |
| 10. Image Galleries on Autopilot: Instant Gallery Maker |
| The creation of image galleries ready for web publishing... |
| 1. Azure CMS |
| Azure CMS is a universal software product for the developmen |
| 2. Azure Portal |
| Azure Portal is a social networking script made with PHP pro |
| 3. One Frog |
| One Frog is a content management system that allows you to u |
| 4. Cigmas CMS |
| Cigmas CMS is a powerful web content management system for g |
| 5. WebWord CMS |
| WebWord CMS is a full featured web content management system |
| 6. Marjetica Content Management System |
| Marjetica Content Management System is a powerful, easy to u |
| 7. Phenotype CMS |
| Phenotype CMS is a PHP/MySQL - Smarty Content Application Fr |
| 8. Chupix CMS |
| Chupix is a content management system written in PHP and sto |
| 9. Interspire Website Publisher |
| Interspire Website Publisher (formerly ArticleLive) is a con |
| 10. Interspire Email Marketer |
| Interspire Email Marketer (formerly SendStudio) is a web bas |
| 11. Comments RAM |
| Comments RAM is a lightweight PHP script that allows you to |
| 12. KoolAjax |
| KoolAjax facilitates data exchange between server-side and c |
| 13. KoolTreeView |
| KoolTreeView is a unique treeview control for PHP. |
| 14. petitforum |
| This is a little discussion board which does not use MySQL a |
| 15. eliteCMS |
| Elite CMS is an ideal content management system for a small |
| 16. TotalW |
| TotalW is a simple to install and use file manager written i |
| 17. alizer |
| alizer is a PHP script that analyzes the Apache log file.It |
| 18. dpDebug 2 |
| dpDebug 2 allows you to track down any problem with certain |
| 19. Projector |
| Projector is a very simple project management system that is |
| 20. Ticket Support System |
| Ticket Support System is an online PHP / MySQL based script |
Leave a comment