Skip to content
Snippets Groups Projects
Commit d895263f authored by Maxence Naud's avatar Maxence Naud
Browse files

Minor changes: doc+optimization keywords

parent ef99c24e
No related branches found
No related tags found
No related merge requests found
...@@ -46,11 +46,11 @@ public: ...@@ -46,11 +46,11 @@ public:
return std::make_shared<MetaOperator_Op>(*this); 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; return mGraph;
} }
const std::shared_ptr<SequentialScheduler>& getMicroGraphScheduler() const { inline const std::shared_ptr<SequentialScheduler>& getMicroGraphScheduler() const noexcept {
return mScheduler; return mScheduler;
} }
......
...@@ -73,12 +73,18 @@ public: ...@@ -73,12 +73,18 @@ public:
public: public:
virtual std::shared_ptr<Operator> clone() const = 0; 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; 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. * @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. * The pointer itself is not changed, thus keeping the current connections.
* @param inputIdx Index of the input to set. * @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, const std::shared_ptr<Data>& data) = 0;
virtual void setInput(const IOIndex_t inputIdx, std::shared_ptr<Data>&& data) = 0; virtual void setInput(const IOIndex_t inputIdx, std::shared_ptr<Data>&& data) = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment