This MR adds attributes (DynamicAttributes
) to nodes and make them accessible from operators (as inheritedAttributes
). It also includes some improvements of the DynamicAttributes
class.
mAttrs
map common to C++ and Python (as suggested in eclipse/aidge/aidge_core#147 by @cguillon, however this does not really permit a clean separation with PyBind for now);DynamicAttributes
member to Node
:
Node
name is now an optional attribute (named "name");Node
attribute to the Operator
(called "inheritedAttributes");ImplSpec
);DynamicAttributes
.API change:
T getAttr() const
returns a copy instead of a const reference.Copyright © Eclipse Foundation, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Copyright Agent