Skip to content

v2.0.0

Latest

Choose a tag to compare

@0xShady 0xShady released this 09 Nov 16:08
· 1 commit to main since this release
866d5ef

Highlights

  • No more editing the header: name your node's fields with FANCY_TREE_LEFT, FANCY_TREE_RIGHT and FANCY_TREE_VALUE before the include, and any printable value type works.
  • Red/black colouring for red-black trees (FANCY_TREE_COLOR, FANCY_TREE_RED).
  • print_dot writes the tree for Graphviz, for trees too big for the terminal.

Upgrading from v1.0.0 (breaking)

  • fancy_tree<Node> is now fancy::tree<Node>.
  • V_VIEW / H_VIEW are now fancy::V_VIEW / fancy::H_VIEW.
  • Remove your edits to fancy_tree.hpp (the NODE, LEFT, RIGHT, CONTENT macros and the include) and use the FANCY_TREE_* macros above instead.

What's Changed

  • Use fancy_tree without editing the header by @0xShady in #4
  • Fix horizontal view leak and support any printable value by @0xShady in #5
  • Add Makefile, output tests, CI and license, refresh the README by @0xShady in #6
  • feat!: put the tree printer and its flags in a namespace by @0xShady in #9
  • docs: record a new sample gif by @0xShady in #10
  • feat: red/black colouring for red-black trees by @0xShady in #13
  • feat: DOT export for Graphviz by @0xShady in #14

New Contributors

Full Changelog: v1.0.0...v2.0.0