| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
The cpp_trees repo provides various tree data structures in C++ along with some simple unit tests.
You can simply use the desired files in your own project (see accompanying LICENSE file for terms).
If you want to run the unit tests, you can do something like:
$ make clean && make testwhich should cause your system to compile everything and run the unit tests. If everything goes well, you should see a bunch of text followed by the line:
Tests passed. No errors found.Note that this code is old that used to live at http://web.mit.edu/~emin/www.old/source_code/cpp_trees/ until MIT took that site down. It is relatively straightforward, commented, and contains the unit tests to verify correctness so it should still be useful. That said, you may have a few minor issues as discussed below:
Compiler warnings: When originally developed, this code compiled with the -pedantic flag with no warnings. Since then C++ has moved on so the compiler complains a lot more. At some point, it would be nice to fix these warnings. Pull requests along these lines are welcome.
tcl: The unit tests use tcl which was very popular at the time this was written. While it is less popular now, it is often packaged with many systems. If you are on a LINUX system, it may already be included. If not, some options include going to the ActiveState web site or installing Anaconda which can provide tcl.
The main source code files are:
These files depend on:
The unit tests are implemented by:
| Back | FazBrowse Home | New Git URL |