From de0f33b3fb28248146cf4fdc97e2fabd5d8df757 Mon Sep 17 00:00:00 2001 From: NAUD Maxence <maxence.naud@cea.fr> Date: Tue, 26 Mar 2024 15:41:32 +0000 Subject: [PATCH] fix function declaration duplicates --- include/aidge/graph/GraphView.hpp | 10 ++++++++++ src/graph/GraphView.cpp | 2 -- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/aidge/graph/GraphView.hpp b/include/aidge/graph/GraphView.hpp index 18eeb8d5e..9ea1ab19b 100644 --- a/include/aidge/graph/GraphView.hpp +++ b/include/aidge/graph/GraphView.hpp @@ -128,7 +128,17 @@ public: void setOrderedInputs(const std::vector<std::pair<NodePtr, IOIndex_t>>& inputs); void setOrderedOutputs(const std::vector<std::pair<NodePtr, IOIndex_t>>& outputs); + /** + * @brief Get inputs of the current GraphView with their associated id. + * The rank of the nodes are their rank in the vector. + * @return const std::vector<std::pair<NodePtr, IOIndex_t>>& + */ inline const std::vector<std::pair<NodePtr, IOIndex_t>>& getOrderedInputs() const noexcept { return mInputNodes; }; + /** + * @brief Get outputs of the current GraphView with their associated id. + * The rank of the nodes are their rank in the vector. + * @return const std::vector<std::pair<NodePtr, IOIndex_t>>& + */ inline const std::vector<std::pair<NodePtr, IOIndex_t>>& getOrderedOutputs() const noexcept { return mOutputNodes; }; /** diff --git a/src/graph/GraphView.cpp b/src/graph/GraphView.cpp index 5c1f0fdab..e6dd128af 100644 --- a/src/graph/GraphView.cpp +++ b/src/graph/GraphView.cpp @@ -72,9 +72,7 @@ Aidge::Connector Aidge::GraphView::operator()( bool Aidge::GraphView::inView(const std::shared_ptr<Aidge::Node>& nodePtr) const { return mNodes.find(nodePtr) != mNodes.cend(); } -std::string Aidge::GraphView::name() const { return mName; } -void Aidge::GraphView::setName(const std::string &name) { mName = name; } void Aidge::GraphView::save(const std::string& path, bool verbose, bool showProducers) const { auto fp = std::unique_ptr<FILE, decltype(&std::fclose)>(std::fopen((path + ".mmd").c_str(), "w"), &std::fclose); -- GitLab