aboutsummaryrefslogtreecommitdiff
path: root/tests/IArrayAccessor.h
diff options
context:
space:
mode:
authorJohn Richardson <john.richardson@arm.com>2017-09-05 11:21:56 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commitf89a49f7bdd8d03400060488596c8757745e19cf (patch)
tree7e98eb703794e2bce9b9f2fbcbfc9c29714cf8fe /tests/IArrayAccessor.h
parentf3aeee133c1c9c98c6828e935cf4f9801fbda9e1 (diff)
downloadComputeLibrary-f89a49f7bdd8d03400060488596c8757745e19cf.tar.gz
COMPMID-503: Move MinMaxLocation to new validation
Change-Id: I2d518b3a3f15e2c4786488593dac244c1d74a0f9 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/86533 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'tests/IArrayAccessor.h')
-rw-r--r--tests/IArrayAccessor.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/IArrayAccessor.h b/tests/IArrayAccessor.h
index 73f8829ed2..f128d8f67e 100644
--- a/tests/IArrayAccessor.h
+++ b/tests/IArrayAccessor.h
@@ -41,7 +41,7 @@ public:
virtual ~IArrayAccessor() = default;
/** Number of elements of the tensor. */
- virtual int num_values() const = 0;
+ virtual size_t num_values() const = 0;
/** Access to the buffer.
*
@@ -54,6 +54,14 @@ public:
* @param[in] num The new array size in number of elements
*/
virtual void resize(size_t num) = 0;
+
+ /** Reference to the element of the array located at the given index
+ *
+ * @param[in] index Index of the element
+ *
+ * @return A reference to the element of the array located at the given index.
+ */
+ virtual T &at(size_t index) const = 0;
};
} // namespace test
} // namespace arm_compute