aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/IPacketBuffer.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-11-05 11:47:40 +0000
committerJim Flynn Arm <jim.flynn@arm.com>2019-11-05 14:27:39 +0000
commit2ffcc4179648bbd6fb08342969391a2bcd027221 (patch)
treef5d06780073bf8354a6b0195dca9961dc1f03ed5 /src/profiling/IPacketBuffer.hpp
parentb67f95796b03c1a5d3b3fa6a40f6baf85bdd09cb (diff)
downloadarmnn-2ffcc4179648bbd6fb08342969391a2bcd027221.tar.gz
IVGCVSW-4065 Refactor the IPacketBuffer smart pointers
* Added convenience "using" statement for the unique pointers to IPacketBuffer * Replaced all the occurrencies in the code Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: Iffec3a425ffbc1ecb23012971563a48139eb32eb
Diffstat (limited to 'src/profiling/IPacketBuffer.hpp')
-rw-r--r--src/profiling/IPacketBuffer.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/profiling/IPacketBuffer.hpp b/src/profiling/IPacketBuffer.hpp
index b4bd615bab..c61d2327f4 100644
--- a/src/profiling/IPacketBuffer.hpp
+++ b/src/profiling/IPacketBuffer.hpp
@@ -5,6 +5,8 @@
#pragma once
+#include <memory>
+
namespace armnn
{
@@ -35,6 +37,8 @@ public:
virtual unsigned char* GetWritableData() = 0;
};
+using IPacketBufferPtr = std::unique_ptr<IPacketBuffer>;
+
} // namespace profiling
-} // namespace armnn \ No newline at end of file
+} // namespace armnn