From c357c47be8a3f210f9eee9a05cc13f1051b036d3 Mon Sep 17 00:00:00 2001 From: Alex Gilday Date: Wed, 21 Mar 2018 13:54:09 +0000 Subject: COMPMID-1008: Fix Doxygen issues Change-Id: Ie73d8771f85d1f5b059f3a56f1bbd73c98e94a38 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/124723 Reviewed-by: Michalis Spyrou Tested-by: Jenkins --- tests/CL/CLAccessor.h | 20 +++++++++++++++++--- tests/CL/CLArrayAccessor.h | 8 ++++++-- tests/CL/CLLutAccessor.h | 9 +++++++-- tests/CL/Helper.h | 15 ++++++++++++--- 4 files changed, 42 insertions(+), 10 deletions(-) (limited to 'tests/CL') diff --git a/tests/CL/CLAccessor.h b/tests/CL/CLAccessor.h index f2e13f1232..66f3df06af 100644 --- a/tests/CL/CLAccessor.h +++ b/tests/CL/CLAccessor.h @@ -44,14 +44,30 @@ public: */ CLAccessor(CLTensor &tensor); + /** Prevent instances of this class from being copy constructed */ CLAccessor(const CLAccessor &) = delete; + /** Prevent instances of this class from being copied */ CLAccessor &operator=(const CLAccessor &) = delete; - CLAccessor(CLAccessor &&) = default; + /** Allow instances of this class to be move constructed */ + CLAccessor(CLAccessor &&) = default; + /** Allow instances of this class to be moved */ CLAccessor &operator=(CLAccessor &&) = default; /** Destructor that unmaps the CL memory. */ ~CLAccessor(); + /** Get the tensor data. + * + * @return a constant pointer to the tensor data. + */ + const void *data() const; + /** Get the tensor data. + * + * @return a pointer to the tensor data. + */ + void *data(); + + // Inherited method overrides TensorShape shape() const override; size_t element_size() const override; size_t size() const override; @@ -65,8 +81,6 @@ public: QuantizationInfo quantization_info() const override; const void *operator()(const Coordinates &coord) const override; void *operator()(const Coordinates &coord) override; - const void *data() const; - void *data(); private: CLTensor &_tensor; diff --git a/tests/CL/CLArrayAccessor.h b/tests/CL/CLArrayAccessor.h index a516a9d96a..c1638ae0df 100644 --- a/tests/CL/CLArrayAccessor.h +++ b/tests/CL/CLArrayAccessor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -49,9 +49,13 @@ public: _array.map(); } + /** Prevent instances of this class from being copy constructed */ CLArrayAccessor(const CLArrayAccessor &) = delete; + /** Prevent instances of this class from being copied */ CLArrayAccessor &operator=(const CLArrayAccessor &) = delete; - CLArrayAccessor(CLArrayAccessor &&) = default; + /** Allow instances of this class to be move constructed */ + CLArrayAccessor(CLArrayAccessor &&) = default; + /** Allow instances of this class to be moved */ CLArrayAccessor &operator=(CLArrayAccessor &&) = default; /** Destructor that unmaps the CL memory. */ diff --git a/tests/CL/CLLutAccessor.h b/tests/CL/CLLutAccessor.h index aa0285845d..ee5886191c 100644 --- a/tests/CL/CLLutAccessor.h +++ b/tests/CL/CLLutAccessor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -44,14 +44,19 @@ public: { _lut.map(true); } + /** Default destructor */ ~CLLutAccessor() { _lut.unmap(); } + /** Prevent instances of this class from being copy constructed */ CLLutAccessor(const CLLutAccessor &) = delete; + /** Prevent instances of this class from being copied */ CLLutAccessor &operator=(const CLLutAccessor &) = delete; - CLLutAccessor(CLLutAccessor &&) = default; + /** Allow instances of this class to be move constructed */ + CLLutAccessor(CLLutAccessor &&) = default; + /** Allow instance of this class to be moved */ CLLutAccessor &operator=(CLLutAccessor &&) = default; int num_elements() const override diff --git a/tests/CL/Helper.h b/tests/CL/Helper.h index 3f19d61a7d..30fbe568f4 100644 --- a/tests/CL/Helper.h +++ b/tests/CL/Helper.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2018 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -31,11 +31,15 @@ namespace arm_compute { namespace test { -// This template synthetizes an ICLSimpleFunction which runs the given kernel K +/** This template synthetizes an ICLSimpleFunction which runs the given kernel K */ template class CLSynthetizeFunction : public ICLSimpleFunction { public: + /** Configure the kernel. + * + * @param[in] args Configuration arguments. + */ template void configure(Args &&... args) { @@ -45,11 +49,16 @@ public: } }; -// As above but this also setups a Zero border on the input tensor of the specified bordersize +/** As above but this also setups a Zero border on the input tensor of the specified bordersize */ template class CLSynthetizeFunctionWithZeroConstantBorder : public ICLSimpleFunction { public: + /** Configure the kernel. + * + * @param[in] first First configuration argument. + * @param[in] args Rest of the configuration arguments. + */ template void configure(T first, Args &&... args) { -- cgit v1.2.1