From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_command_handler_registry_8hpp_source.xhtml | 123 ++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 20.02/_command_handler_registry_8hpp_source.xhtml (limited to '20.02/_command_handler_registry_8hpp_source.xhtml') diff --git a/20.02/_command_handler_registry_8hpp_source.xhtml b/20.02/_command_handler_registry_8hpp_source.xhtml new file mode 100644 index 0000000000..22de1054da --- /dev/null +++ b/20.02/_command_handler_registry_8hpp_source.xhtml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + +ArmNN: src/profiling/CommandHandlerRegistry.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CommandHandlerRegistry.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 
9 #include "CommandHandlerKey.hpp"
10 
11 #include <boost/functional/hash.hpp>
12 
13 #include <unordered_map>
14 
15 namespace armnn
16 {
17 
18 namespace profiling
19 {
20 
22 {
23  std::size_t operator() (const CommandHandlerKey& commandHandlerKey) const
24  {
25  std::size_t seed = 0;
26  boost::hash_combine(seed, commandHandlerKey.GetPacketId());
27  boost::hash_combine(seed, commandHandlerKey.GetVersion());
28  return seed;
29  }
30 };
31 
33 {
34 public:
35  CommandHandlerRegistry() = default;
36 
37  void RegisterFunctor(CommandHandlerFunctor* functor, uint32_t familyId, uint32_t packetId, uint32_t version);
38 
39  void RegisterFunctor(CommandHandlerFunctor* functor);
40 
41  CommandHandlerFunctor* GetFunctor(uint32_t familyId, uint32_t packetId, uint32_t version) const;
42 
43 private:
44  std::unordered_map<CommandHandlerKey, CommandHandlerFunctor*, CommandHandlerHash> registry;
45 };
46 
47 } // namespace profiling
48 
49 } // namespace armnn
+ + +
Copyright (c) 2020 ARM Limited.
+
std::size_t operator()(const CommandHandlerKey &commandHandlerKey) const
+ + + + + +
+
+ + + + -- cgit v1.2.1