• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux tree.hh Download

tree.hh

November 9, 2009
This is a C++ software that provides a flexible and general-purpose templated tree class for developers. With this software, programmers can easily create and manage tree-like data structures in their applications.
Version 2.65
License GPL
Platform Linux
Supported Languages English
Homepage www.aei.mpg.de
Developed by Kasper Peeters
Tree.hh is a versatile, templated tree class that operates with C++ and is compatible with the STL algorithms. It is based on the STL's generic programming principles and it can be used for various purposes.

The code below shows a simple example of how to use Tree.hh. The program creates a tree of std::string nodes and then populates the nodes with content. Finally, the program applies the find algorithm to retrieve the node that contains the string "two" and prints out the content of all its children.

```cpp
#include
#include
#include
#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 << *sib << endl;
++sib;
}
}
return 0;
}
```

The above code is available as a downloadable source "tree_example.cc" file. Tree.hh provides an easy way to create, populate, and organize a tree of nodes. It is especially convenient for managing complex data structures such as hierarchical data. The library is well-documented and comes with detailed examples to guide users on how to use it effectively.
What's New

Version 2.65: N/A

Free Download 193K
312
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

k12admin-client
K12admin-client is a web-based server management tool designed for K-12 schools, offering ...
Bake
Bake is a programming language to convert one file into another with ...
GTK-server
GTK-server allows GTK 1.x and 2.x apps to be accessed by shellscripts ...
Frocor
Frocor is a sound-graphics installation software, which abbreviates F Resonating Objects Correlator.
PAM Sessionrun
PAM Sessionrun is a PAM module that executes a script during the ...
Xnetintf
Xnetintf is an X Windows software that facilitates network interface management.
Adamantix
Adamantix is a Linux distribution that prioritizes high security and usability. Its ...
Simple Settings Dialog
This software facilitates the creation of straightforward dialogs that script authors can ...
Server Web Administration Tool
The Server Web Administration Tool is a self-extracting shell script that offers ...
dotnew
A software tool designed for Slackware that enables the management of .new ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.