ArmNN
 24.02
StringMapping Struct Reference

StringMapping is helper class to be able to use strings as template parameters, so this allows simplifying code which only differs in a string, such as a debug string literal. More...

#include <StringMapping.hpp>

Public Types

enum  Id {
  RefAdditionWorkload_Execute, RefDivisionWorkload_Execute, RefMaximumWorkload_Execute, RefMinimumWorkload_Execute,
  RefMultiplicationWorkload_Execute, RefSubtractionWorkload_Execute, MAX_STRING_ID
}
 

Public Member Functions

const char * Get (Id id) const
 

Static Public Member Functions

static const StringMappingInstance ()
 

Detailed Description

StringMapping is helper class to be able to use strings as template parameters, so this allows simplifying code which only differs in a string, such as a debug string literal.

Definition at line 16 of file StringMapping.hpp.

Member Enumeration Documentation

◆ Id

enum Id
Enumerator
RefAdditionWorkload_Execute 
RefDivisionWorkload_Execute 
RefMaximumWorkload_Execute 
RefMinimumWorkload_Execute 
RefMultiplicationWorkload_Execute 
RefSubtractionWorkload_Execute 
MAX_STRING_ID 

Definition at line 19 of file StringMapping.hpp.

Member Function Documentation

◆ Get()

const char* Get ( Id  id) const
inline

Definition at line 29 of file StringMapping.hpp.

30  {
31  return m_Strings[id];
32  }

◆ Instance()

const StringMapping & Instance ( )
static

Definition at line 11 of file StringMapping.cpp.

12 {
13  static StringMapping instance;
14  return instance;
15 }

The documentation for this struct was generated from the following files:
armnn::StringMapping::RefMaximumWorkload_Execute
@ RefMaximumWorkload_Execute
Definition: StringMapping.hpp:22
armnn::StringMapping::MAX_STRING_ID
@ MAX_STRING_ID
Definition: StringMapping.hpp:26
armnn::StringMapping::RefDivisionWorkload_Execute
@ RefDivisionWorkload_Execute
Definition: StringMapping.hpp:21
armnn::StringMapping::RefAdditionWorkload_Execute
@ RefAdditionWorkload_Execute
Definition: StringMapping.hpp:20
armnn::StringMapping::RefMultiplicationWorkload_Execute
@ RefMultiplicationWorkload_Execute
Definition: StringMapping.hpp:24
armnn::StringMapping::RefSubtractionWorkload_Execute
@ RefSubtractionWorkload_Execute
Definition: StringMapping.hpp:25
armnn::StringMapping::RefMinimumWorkload_Execute
@ RefMinimumWorkload_Execute
Definition: StringMapping.hpp:23