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

Make some arguments const for data flow functions

parent 59855419
No related branches found
No related tags found
No related merge requests found
......@@ -29,10 +29,10 @@ public:
* @param inputIdx Index of the input analysed.
* @return std::size_t
*/
virtual NbElts_t getNbRequiredData(IOIndex_t inputIdx) const = 0;
virtual NbElts_t getNbRequiredData(const IOIndex_t inputIdx) const = 0;
// Amount of input data that cannot be overwritten during the execution.
virtual NbElts_t getNbRequiredProtected(IOIndex_t inputIdx) const = 0;
virtual NbElts_t getNbRequiredProtected(const IOIndex_t inputIdx) const = 0;
// Memory required at an output for a given input size.
virtual NbElts_t getRequiredMemory(const IOIndex_t outputIdx, const std::vector<DimSize_t> &inputsSize) const = 0;
......@@ -43,7 +43,7 @@ public:
* @param inputIdx Index of the input analysed.
* @return DimSize_t
*/
virtual NbElts_t getNbConsumedData(IOIndex_t inputIdx) const = 0;
virtual NbElts_t getNbConsumedData(const IOIndex_t inputIdx) const = 0;
/**
* @brief TOtal amount of produced data ready to be used on a specific output.
......@@ -51,7 +51,7 @@ public:
* @param outputIdx Index of the output analysed.
* @return DimSize_t
*/
virtual NbElts_t getNbProducedData(IOIndex_t outputIdx) const = 0;
virtual NbElts_t getNbProducedData(const IOIndex_t outputIdx) const = 0;
virtual ~OperatorImpl() = default;
};
......
......@@ -60,7 +60,7 @@ public:
* @param inputIdx Index of the input analysed.
* @return NbElts_t
*/
NbElts_t getNbRequiredData(IOIndex_t inputIdx) const;
NbElts_t getNbRequiredData(const IOIndex_t inputIdx) const;
/**
* @brief Amount of data from a specific input actually used in one computation pass.
......@@ -68,7 +68,7 @@ public:
* @param inputIdx Index of the input analysed.
* @return NbElts_t
*/
NbElts_t getNbConsumedData(IOIndex_t inputIdx) const;
NbElts_t getNbConsumedData(const IOIndex_t inputIdx) const;
/**
* @brief Amount of data ready to be used on a specific output.
......@@ -76,7 +76,7 @@ public:
* @param outputIdx Index of the output analysed.
* @return NbElts_t
*/
NbElts_t getNbProducedData(IOIndex_t outputIdx) const;
NbElts_t getNbProducedData(const IOIndex_t outputIdx) const;
virtual void forward();
......
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