aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/Size2D.h
diff options
context:
space:
mode:
authorIsabella Gottardi <isabella.gottardi@arm.com>2018-01-26 12:32:45 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:46:07 +0000
commit6e464c37b5335e362ac3f988cc4b0beed5205ff4 (patch)
tree24f758be47f1dd439a4ab3f8f3631a1ed7ef4566 /arm_compute/core/Size2D.h
parent3364c4ca658d44f449a8d3d6e9eee31d90254f15 (diff)
downloadComputeLibrary-6e464c37b5335e362ac3f988cc4b0beed5205ff4.tar.gz
COMPMID-828 - Add support for non square pool size - Part1
Change-Id: Ib8100e7c659c49694c746fa3f36ce20f44f6929f Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/117804 Reviewed-by: Michele DiGiorgio <michele.digiorgio@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/Size2D.h')
-rw-r--r--arm_compute/core/Size2D.h32
1 files changed, 5 insertions, 27 deletions
diff --git a/arm_compute/core/Size2D.h b/arm_compute/core/Size2D.h
index cb053ea2c4..3840771cd1 100644
--- a/arm_compute/core/Size2D.h
+++ b/arm_compute/core/Size2D.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2017 ARM Limited.
+ * Copyright (c) 2016-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -25,6 +25,7 @@
#define __ARM_COMPUTE_SIZE2D_H__
#include <cstddef>
+#include <utility>
namespace arm_compute
{
@@ -33,10 +34,7 @@ class Size2D
{
public:
/** Default constructor */
- Size2D()
- : width(0), height(0)
- {
- }
+ Size2D() = default;
/** Constructor. Initializes "width" and "height" respectively with "w" and "h"
*
* @param[in] w Width of the image or rectangle
@@ -46,26 +44,6 @@ public:
: width(w), height(h)
{
}
- /** Constructor. Initializes "width" and "height" with the dimensions of "size"
- *
- * @param[in] size Size data object
- */
- Size2D(const Size2D &size)
- : width(size.width), height(size.height)
- {
- }
- /** Copy assignment
- *
- * @param[in] size Constant reference input "Size2D" data object to copy
- *
- * @return Reference to the newly altered left hand side "Size2D" data object
- */
- Size2D &operator=(const Size2D &size)
- {
- width = size.width;
- height = size.height;
- return *this;
- }
/** The area of the image or rectangle calculated as (width * height)
*
* @return Area (width * height)
@@ -77,8 +55,8 @@ public:
}
public:
- size_t width; /**< Width of the image region or rectangle */
- size_t height; /**< Height of the image region or rectangle */
+ size_t width = {}; /**< Width of the image region or rectangle */
+ size_t height = {}; /**< Height of the image region or rectangle */
};
}
#endif /*__ARM_COMPUTE_SIZE2D_H__ */