ArmNN  NotReleased
StringMapping.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 namespace armnn
9 {
10 
17 {
18 public:
19  enum Id {
27  };
28 
29  const char * Get(Id id) const
30  {
31  return m_Strings[id];
32  }
33 
34  static const StringMapping& Instance();
35 
36 private:
38  {
39  m_Strings[RefAdditionWorkload_Execute] = "RefAdditionWorkload_Execute";
40  m_Strings[RefDivisionWorkload_Execute] = "RefDivisionWorkload_Execute";
41  m_Strings[RefMaximumWorkload_Execute] = "RefMaximumWorkload_Execute";
42  m_Strings[RefMinimumWorkload_Execute] = "RefMinimumWorkload_Execute";
43  m_Strings[RefMultiplicationWorkload_Execute] = "RefMultiplicationWorkload_Execute";
44  m_Strings[RefSubtractionWorkload_Execute] = "RefSubtractionWorkload_Execute";
45  }
46 
47  StringMapping(const StringMapping &) = delete;
48  StringMapping& operator=(const StringMapping &) = delete;
49 
50  const char * m_Strings[MAX_STRING_ID];
51 };
52 
53 } //namespace armnn
static const StringMapping & Instance()
const char * Get(Id id) const