InputCategory as bitwise flag and Better handle inputs
Compare changes
Often optional input are treated as required inputs and this contribution make the InputCategory as a bitwise filter to ease filtering of needed inputs without altering the api.
include/aidge/graph/GraphView.hpp
src/graph/GraphView.cpp
include/aidge/graph/Node.hpp
src/graph/Node.cpp
include/aidge/operator/Operator.hpp
include/aidge/utils/BitwiseUtils.hpp
- AddedPyBind :
python_binding/graph/pybind_GraphView.cpp
python_binding/operator/pybind_Operator.cpp
python_binding/pybind_core.cpp
std::set<std::shared_ptr<Aidge::Node>> Aidge::GraphView::inputNodes(InputCategory filter)
enum class InputCategory
is now an unsigned int object class allowing bitwise operationsgetNbFreeDataInputs()
now return only Data and DataOptional inputsaddChild
now add the first available free data instead of the first dataCopyright © Eclipse Foundation, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Copyright Agent