diff --git a/include/aidge/operator/MetaOperator.hpp b/include/aidge/operator/MetaOperator.hpp index 025b7278c2cb48f859e7e5401288ecdbff3c1525..219e15e8995540ec61ce224f2a9f13449a438b75 100644 --- a/include/aidge/operator/MetaOperator.hpp +++ b/include/aidge/operator/MetaOperator.hpp @@ -46,11 +46,11 @@ public: return std::make_shared<MetaOperator_Op>(*this); } - const std::shared_ptr<GraphView>& getMicroGraph() const { + inline const std::shared_ptr<GraphView>& getMicroGraph() const noexcept { return mGraph; } - const std::shared_ptr<SequentialScheduler>& getMicroGraphScheduler() const { + inline const std::shared_ptr<SequentialScheduler>& getMicroGraphScheduler() const noexcept { return mScheduler; } diff --git a/include/aidge/operator/Operator.hpp b/include/aidge/operator/Operator.hpp index 32293eaa548498fac16bdfa526d5c0f8c4bcd199..c20552e8e4c755c6edb4368b507b0e4994c7ce9e 100644 --- a/include/aidge/operator/Operator.hpp +++ b/include/aidge/operator/Operator.hpp @@ -73,12 +73,18 @@ public: public: virtual std::shared_ptr<Operator> clone() const = 0; + /** + * @brief Set the specified input with a shallow copy. + * @param inputIdx Index of the input to set. + * @param data Data to copy. + */ virtual void associateInput(const IOIndex_t inputIdx, const std::shared_ptr<Data>& data) = 0; /** * @brief Set the specified input by performing a deep copy of the given data. * The pointer itself is not changed, thus keeping the current connections. * @param inputIdx Index of the input to set. + * @param data Data to copy. */ virtual void setInput(const IOIndex_t inputIdx, const std::shared_ptr<Data>& data) = 0; virtual void setInput(const IOIndex_t inputIdx, std::shared_ptr<Data>&& data) = 0;