graphdot.codegen.cpptool module

graphdot.codegen.cpptool.cpptype(decls=[], **kwdecls)[source]

cpptype is a class decorator that simplifies the translation of python objects to corresponding C++ structures.

graphdot.codegen.cpptool.decltype(t, name='')[source]

Generate C++ source code for structures corresponding to a cpptype class.