blob: 1ec5f5171fdc47771476f4ec483ad18814e03327 [file] [log] [blame]
Francis Murtagh1f7db452019-08-14 09:49:34 +01001//
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-Tare898db92019-08-22 12:56:34 +010010namespace armnn
11{
12
13namespace profiling
14{
15
Francis Murtagh1f7db452019-08-14 09:49:34 +010016class CommandHandlerKey
17{
18public:
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
31private:
32 uint32_t m_PacketId;
33 uint32_t m_Version;
34};
Aron Virginas-Tare898db92019-08-22 12:56:34 +010035
36} // namespace profiling
37
38} // namespace armnn