From d895263fb9d24b38c945eb47436d04aa980aee64 Mon Sep 17 00:00:00 2001 From: NAUD Maxence <maxence.naud@cea.fr> Date: Thu, 4 Jan 2024 14:21:07 +0000 Subject: [PATCH] Minor changes: doc+optimization keywords --- include/aidge/operator/MetaOperator.hpp | 4 ++-- include/aidge/operator/Operator.hpp | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/aidge/operator/MetaOperator.hpp b/include/aidge/operator/MetaOperator.hpp index 025b7278c..219e15e89 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 32293eaa5..c20552e8e 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; -- GitLab