]> granicus.if.org Git - graphviz/commit
add a GVLayout class with construction from AGraph and GVContext objects
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 4 Apr 2021 13:58:29 +0000 (15:58 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 7 Aug 2021 04:54:12 +0000 (06:54 +0200)
commitc9f78d382dc5faa8c0b8785537489c920ee2ecdc
tree408de9185c041fd67d4b7289adbfd5ad4cd5dece
parentff56df875bbb436d7b580477ac99f8cdcb90e7cb
add a GVLayout class with construction from AGraph and GVContext objects

The GVLayout class is an RAII-class that performs a layout using
shared pointers to AGraph and GVContext objects. It participates in
the handling of the lifetime of those objects, since it needs them to
free the layout when the GVLayout object is destroyed. It currently
supports construction with built-in plugins, move construction and
move assignment, but not copy construction or copy assignment since
the AGraph and GVContext objects do not support that.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2001.
lib/gvc++/CMakeLists.txt
lib/gvc++/GVLayout.cpp [new file with mode: 0644]
lib/gvc++/GVLayout.h [new file with mode: 0644]