aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/ProfilingGuid.hpp
diff options
context:
space:
mode:
authorjaneil01 <jan.eilers@arm.com>2019-11-07 09:32:28 +0000
committerjaneil01 <jan.eilers@arm.com>2019-11-07 13:32:47 +0000
commitc4946c7addd65f032951dbf16fb824cdd67fd463 (patch)
tree4cca1b17024d55529cac74b809d08703e2541406 /src/profiling/ProfilingGuid.hpp
parente63a026bd987e78bdaa5b94c3e53201b62011faa (diff)
downloadarmnn-c4946c7addd65f032951dbf16fb824cdd67fd463.tar.gz
IVGCVSW-4102 Move ProfilingGuid to public interface
* Moved ProfilingGuid to Types.hpp * Refactoring to enable ProfilingGuid Signed-off-by: janeil01 <jan.eilers@arm.com> Change-Id: Ibf77002d74e484f8a63ffd96aa14303c1f0d38ae
Diffstat (limited to 'src/profiling/ProfilingGuid.hpp')
-rw-r--r--src/profiling/ProfilingGuid.hpp70
1 files changed, 0 insertions, 70 deletions
diff --git a/src/profiling/ProfilingGuid.hpp b/src/profiling/ProfilingGuid.hpp
deleted file mode 100644
index 5deee11783..0000000000
--- a/src/profiling/ProfilingGuid.hpp
+++ /dev/null
@@ -1,70 +0,0 @@
-//
-// Copyright © 2019 Arm Ltd. All rights reserved.
-// SPDX-License-Identifier: MIT
-//
-
-#pragma once
-
-#include <stdint.h>
-
-namespace armnn
-{
-
-namespace profiling
-{
-
-class ProfilingGuid
-{
-public:
- ProfilingGuid(uint64_t guid) : m_Guid(guid) {}
-
- operator uint64_t() const { return m_Guid; }
-
- bool operator==(const ProfilingGuid& other) const
- {
- return m_Guid == other.m_Guid;
- }
-
- bool operator!=(const ProfilingGuid& other) const
- {
- return m_Guid != other.m_Guid;
- }
-
- bool operator<(const ProfilingGuid& other) const
- {
- return m_Guid < other.m_Guid;
- }
-
- bool operator<=(const ProfilingGuid& other) const
- {
- return m_Guid <= other.m_Guid;
- }
-
- bool operator>(const ProfilingGuid& other) const
- {
- return m_Guid > other.m_Guid;
- }
-
- bool operator>=(const ProfilingGuid& other) const
- {
- return m_Guid >= other.m_Guid;
- }
-
-protected:
- uint64_t m_Guid;
-};
-
-/// Strongly typed guids to distinguish between those generated at runtime, and those that are statically defined.
-struct ProfilingDynamicGuid : public ProfilingGuid
-{
- using ProfilingGuid::ProfilingGuid;
-};
-
-struct ProfilingStaticGuid : public ProfilingGuid
-{
- using ProfilingGuid::ProfilingGuid;
-};
-
-} // namespace profiling
-
-} // namespace armnn