ProductPromotion
Logo

C++ Programming

made by https://0x3d.site

GitHub - erikerlandson/st_tree: A fast and flexible c++ template class for tree data structures
A fast and flexible c++ template class for tree data structures - erikerlandson/st_tree
Visit Site

GitHub - erikerlandson/st_tree: A fast and flexible c++ template class for tree data structures

GitHub - erikerlandson/st_tree: A fast and flexible c++ template class for tree data structures

st_tree: A fast and flexible c++ template class for tree data structures

Build Status

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

Quick start:

# generate makefiles from cmake
$ cd /path/to/st_tree
$ cmake .

# generate makefiles to build examples from cmake
$ cd /path/to/st_tree
$ cmake . -DBUILD_EXAMPLES=ON

# make examples and tests:
$ make

# run unit tests
$ ./tests/unit_tests

# installs header files and cmake integrations to /usr/local
$ make install

To build st_tree with a particular c++ standard (e.g. c++ 11, 14, 17, etc):

$ cmake -D CMAKE_CXX_STANDARD=14 .

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

More Resources
to explore the angular.

mail [email protected] to add your project or resources here 🔥.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory