gTree
This is a generalized tree data structure with support of unlimited number of nodes' children
Building
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_BUILD_TYPE=Release
$ make
Using in your project
Add code below to your CMakeLists.txt and include "gtree.h"
FetchContent_Declare(
gtree
GIT_REPOSITORY https://github.com/Lord-KA/gTree.git
GIT_TAG release-1.X
)
if(NOT gtree_POPULATED)
FetchContent_Populate(gtree)
include_directories(${gtree_SOURCE_DIR})
endif()
You have to pre-define GTREE_TYPE
with macro or typedef
before including the header
To use gTree (re)storing you need to define three functions (read more in gtree.h)
DONE
- Basic abstract tree
- Utility ObjPool data structure
- GraphViz dumps
- CMake with fetching
- (Re)storing of a tree to/from a file in human-readalbe format
- Modern-Art capybara ASCII
- Unit tests
- Github CI
TODO
- Test coverage check