ArmNN
 20.05
CommandHandlerKey.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "CommandHandlerKey.hpp"
7 
8 namespace armnn
9 {
10 
11 namespace profiling
12 {
13 
15 {
16  return m_FamilyId;
17 }
18 
20 {
21  return m_PacketId;
22 }
23 
25 {
26  return m_Version;
27 }
28 
30 {
31  bool result = true;
32  if (m_FamilyId == rhs.m_FamilyId)
33  {
34  if (m_PacketId == rhs.m_PacketId)
35  {
36  result = m_Version < rhs.m_Version;
37  }
38  else if (m_PacketId > rhs.m_PacketId)
39  {
40  result = false;
41  }
42  }
43  else if (m_FamilyId > rhs.m_FamilyId)
44  {
45  result = false;
46  }
47  return result;
48 }
49 
51 {
52  return rhs < *this;
53 }
54 
56 {
57  return !(*this > rhs);
58 }
59 
61 {
62  return !(*this < rhs);
63 }
64 
66 {
67  return m_FamilyId == rhs.m_FamilyId && m_PacketId == rhs.m_PacketId && m_Version == rhs.m_Version;
68 }
69 
71 {
72  return !(*this == rhs);
73 }
74 
75 } // namespace profiling
76 
77 } // namespace armnn
bool operator!=(const CommandHandlerKey &rhs) const
Copyright (c) 2020 ARM Limited.
bool operator>(const CommandHandlerKey &rhs) const
bool operator==(const CommandHandlerKey &rhs) const
bool operator<=(const CommandHandlerKey &rhs) const
bool operator>=(const CommandHandlerKey &rhs) const
bool operator<(const CommandHandlerKey &rhs) const