Giter Site home page Giter Site logo

lv80 / st_tree Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erikerlandson/st_tree

0.0 2.0 0.0 223 KB

A C++ template tree container class for storing data in an arbitrary tree structure. This tree container class is STL-compliant, supports configurable storage models for child nodes, is unit tested and memory tested. It is open source and released under the Apache 2.0 license.

Home Page: https://github.com/erikerlandson/st_tree/wiki

License: Apache License 2.0

CMake 0.57% C++ 99.43%

st_tree's Introduction

==========
INTRODUCTION
==========
The st_tree library implements a C++ template tree container class for storing data in arbitrary tree structures. st_tree is short for “standard template tree,” and supports STL-compatible interfaces including iterators, allocators and standard STL container methods.

The st_tree library allows the programmer to easily declare and manipulate data in a tree:

// declare a tree of integers, where children are stored using a vector storage model
tree<int> t1;  

// declare a tree of strings, where node children are maintained in sorted order
tree<string, ordered<> > t2;

// declare a tree of floating point, where children are indexed by a string label
tree<float, keyed<string> > t3;


==========
FEATURES
==========
The st_tree template container class provides the following features

* Fully featured standard STL container interface, including standard container methods, iterators, typedefs and allocators
* Common tree-related methods, including ply(), depth(), subtree_size(), is_root() and parent()
* Computational efficiency — all operations execute in logarithmic time, except those involving deep copy
* Configurable storage models for child nodes — children of a node may be managed using a vector<> (“raw”), multiset<> (“ordered”) or map<> (“keyed”) container model.
* Compiles under standard ANSI C++
* Unit tested
* Memory tested with valgrind
* Open sourced under the Apache 2.0 License


==========
DOCUMENTATION
==========

Documentation for the st_tree template container class and its components can be found here:
https://github.com/erikerlandson/st_tree/wiki/st_tree-documentation

The st_tree wiki is here:
https://github.com/erikerlandson/st_tree/wiki


==========
INSTALL
==========
The st_tree project home is here:
https://github.com/erikerlandson/st_tree

Instructions for download and install are here:
https://github.com/erikerlandson/st_tree/wiki/st_tree-installation-and-building


==========
EXAMPLES
==========
Examples reside in the .../st_tree/examples subdirectory.   You can also view an annotated list here:
https://github.com/erikerlandson/st_tree/wiki/st_tree-examples


==========
LICENSE
==========
The st_tree repository is published under the Apache License, Version 2.0:
http://www.apache.org/licenses/LICENSE-2.0

st_tree's People

Contributors

erikerlandson avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.