]> sigrok.org Git - libsigrok.git/commit
C++: Move C struct pointers out of ownership classes
authorDaniel Elstner <redacted>
Sun, 11 Oct 2015 15:57:30 +0000 (17:57 +0200)
committerDaniel Elstner <redacted>
Mon, 26 Oct 2015 05:45:56 +0000 (06:45 +0100)
commitd5d7b09eb76de71a42b780b97aee5f5019d2d799
tree6bbe3055da91897f1b23e3734979ff95b935ce59
parentb6ab954d67b584af662323ae79ae6da0fbd3a588
C++: Move C struct pointers out of ownership classes

Reduce needless over-generalization. There is no design need
for the ParentOwned and UserOwned classes to contain the C base
struct pointer. Instead, just make the _structure pointer a
private member of each class that needs one.
bindings/cxx/classes.cpp
bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp