ArmNN
 21.02
StubCommandHandler.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include <common/include/CommandHandlerFunctor.hpp>
8 #include <common/include/IgnoreUnused.hpp>
9 
10 #include <vector>
11 
12 namespace armnn
13 {
14 
15 namespace gatordmock
16 {
17 
18 class StubCommandHandler : public arm::pipe::CommandHandlerFunctor
19 {
20 
21 public:
22  /**
23  *
24  * @param packetId The id of packets this handler will process.
25  * @param version The version of that id.
26  */
27  StubCommandHandler(uint32_t familyId,
28  uint32_t packetId,
29  uint32_t version)
30  : CommandHandlerFunctor(familyId, packetId, version)
31  {}
32 
33  void operator()(const arm::pipe::Packet& packet) override
34  {
35  //No op
37  }
38 
39 };
40 
41 } // namespace gatordmock
42 } // namespace armnn
Copyright (c) 2021 ARM Limited and Contributors.
void IgnoreUnused(Ts &&...)
void operator()(const arm::pipe::Packet &packet) override
StubCommandHandler(uint32_t familyId, uint32_t packetId, uint32_t version)