Francis Murtagh | 1f7db45 | 2019-08-14 09:49:34 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <cstdint> |
| 9 | |
Aron Virginas-Tar | e898db9 | 2019-08-22 12:56:34 +0100 | [diff] [blame] | 10 | namespace armnn |
| 11 | { |
| 12 | |
| 13 | namespace profiling |
| 14 | { |
| 15 | |
Francis Murtagh | 1f7db45 | 2019-08-14 09:49:34 +0100 | [diff] [blame] | 16 | class CommandHandlerKey |
| 17 | { |
| 18 | public: |
| 19 | CommandHandlerKey(uint32_t packetId, uint32_t version) : m_PacketId(packetId), m_Version(version) {}; |
| 20 | |
| 21 | uint32_t GetPacketId() const; |
| 22 | uint32_t GetVersion() const; |
| 23 | |
| 24 | bool operator< (const CommandHandlerKey& rhs) const; |
| 25 | bool operator> (const CommandHandlerKey& rhs) const; |
| 26 | bool operator<=(const CommandHandlerKey& rhs) const; |
| 27 | bool operator>=(const CommandHandlerKey& rhs) const; |
| 28 | bool operator==(const CommandHandlerKey& rhs) const; |
| 29 | bool operator!=(const CommandHandlerKey& rhs) const; |
| 30 | |
| 31 | private: |
| 32 | uint32_t m_PacketId; |
| 33 | uint32_t m_Version; |
| 34 | }; |
Aron Virginas-Tar | e898db9 | 2019-08-22 12:56:34 +0100 | [diff] [blame] | 35 | |
| 36 | } // namespace profiling |
| 37 | |
| 38 | } // namespace armnn |