ArmNN  NotReleased
CommandHandlerFunctor.hpp
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 "Packet.hpp"
7 
8 #include <cstdint>
9 
10 #include <boost/core/ignore_unused.hpp>
11 
12 namespace armnn
13 {
14 
15 namespace profiling
16 {
17 
18 #pragma once
19 
21 {
22 public:
23  CommandHandlerFunctor(uint32_t familyId, uint32_t packetId, uint32_t version)
24  : m_FamilyId(familyId),
25  m_PacketId(packetId)
26  , m_Version(version)
27  {}
28 
29  uint32_t GetFamilyId() const;
30  uint32_t GetPacketId() const;
31  uint32_t GetVersion() const;
32 
33  virtual void operator()(const Packet& packet) = 0;
34 
36 
37 private:
38  uint32_t m_FamilyId;
39  uint32_t m_PacketId;
40  uint32_t m_Version;
41 };
42 
43 } // namespace profiling
44 
45 } // namespace armnn
virtual void operator()(const Packet &packet)=0
CommandHandlerFunctor(uint32_t familyId, uint32_t packetId, uint32_t version)