ArmNN
 20.02
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 #pragma once
7 
8 #include "Packet.hpp"
9 
11 
12 #include <cstdint>
13 
14 namespace armnn
15 {
16 
17 namespace profiling
18 {
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
Copyright (c) 2020 ARM Limited.
CommandHandlerFunctor(uint32_t familyId, uint32_t packetId, uint32_t version)
virtual void operator()(const Packet &packet)=0