24.02
|
Very basic type safe variant. More...
#include <BackendOptions.hpp>
Public Member Functions | |
Var (int i) | |
Constructors. More... | |
Var (unsigned int u) | |
Var (float f) | |
Var (bool b) | |
Var (const char *s) | |
Var (std::string s) | |
template<typename DisallowedType > | |
Var (DisallowedType) | |
Disallow implicit conversions from types not explicitly allowed below. More... | |
Var (const Var &other) | |
Copy Construct. More... | |
Var & | operator= (const Var &other) |
Copy operator. More... | |
bool | IsBool () const |
Type getters. More... | |
bool | IsInt () const |
bool | IsUnsignedInt () const |
bool | IsFloat () const |
bool | IsString () const |
bool | AsBool () const |
Value getters. More... | |
int | AsInt () const |
unsigned int | AsUnsignedInt () const |
float | AsFloat () const |
std::string | AsString () const |
std::string | ToString () |
~Var () | |
Destructor. More... | |
Very basic type safe variant.
Definition at line 38 of file BackendOptions.hpp.
|
inlineexplicit |
Constructors.
Definition at line 43 of file BackendOptions.hpp.
|
inlineexplicit |
Definition at line 44 of file BackendOptions.hpp.
|
inlineexplicit |
Definition at line 45 of file BackendOptions.hpp.
|
inlineexplicit |
Definition at line 46 of file BackendOptions.hpp.
References armnn::Boolean.
|
inlineexplicit |
Definition at line 47 of file BackendOptions.hpp.
|
inlineexplicit |
Definition at line 48 of file BackendOptions.hpp.
|
inline |
Disallow implicit conversions from types not explicitly allowed below.
Definition at line 52 of file BackendOptions.hpp.
Copy Construct.
Definition at line 59 of file BackendOptions.hpp.
|
inline |
Destructor.
Definition at line 138 of file BackendOptions.hpp.
|
inline |
Value getters.
Definition at line 119 of file BackendOptions.hpp.
References BackendOptions::Var::IsBool().
Referenced by armnn::HasMatchingCapability(), armnn::ParseBooleanBackendOption(), and BackendOptions::Var::ToString().
|
inline |
Definition at line 122 of file BackendOptions.hpp.
References BackendOptions::Var::IsFloat().
Referenced by armnn::HasMatchingCapability(), and BackendOptions::Var::ToString().
|
inline |
Definition at line 120 of file BackendOptions.hpp.
References BackendOptions::Var::IsInt().
Referenced by armnn::HasMatchingCapability(), armnn::ParseIntBackendOption(), armnn::ParseTuningLevel(), and BackendOptions::Var::ToString().
|
inline |
Definition at line 123 of file BackendOptions.hpp.
References BackendOptions::Var::IsString().
Referenced by armnn::HasMatchingCapability(), armnn::ParseStringBackendOption(), and BackendOptions::Var::ToString().
|
inline |
Definition at line 121 of file BackendOptions.hpp.
References BackendOptions::Var::IsUnsignedInt().
Referenced by armnn::HasMatchingCapability(), and BackendOptions::Var::ToString().
|
inline |
Type getters.
Definition at line 112 of file BackendOptions.hpp.
Referenced by BackendOptions::Var::AsBool(), armnn::HasMatchingCapability(), armnn::ParseBooleanBackendOption(), and BackendOptions::Var::ToString().
|
inline |
Definition at line 115 of file BackendOptions.hpp.
Referenced by BackendOptions::Var::AsFloat(), armnn::HasMatchingCapability(), and BackendOptions::Var::ToString().
|
inline |
Definition at line 113 of file BackendOptions.hpp.
Referenced by BackendOptions::Var::AsInt(), armnn::HasMatchingCapability(), armnn::ParseIntBackendOption(), armnn::ParseTuningLevel(), and BackendOptions::Var::ToString().
|
inline |
Definition at line 116 of file BackendOptions.hpp.
Referenced by BackendOptions::Var::AsString(), armnn::HasMatchingCapability(), armnn::ParseStringBackendOption(), and BackendOptions::Var::ToString().
|
inline |
Definition at line 114 of file BackendOptions.hpp.
Referenced by BackendOptions::Var::AsUnsignedInt(), armnn::HasMatchingCapability(), and BackendOptions::Var::ToString().
|
inline |
Definition at line 124 of file BackendOptions.hpp.
References BackendOptions::Var::AsBool(), BackendOptions::Var::AsFloat(), BackendOptions::Var::AsInt(), BackendOptions::Var::AsString(), BackendOptions::Var::AsUnsignedInt(), BackendOptions::Var::IsBool(), BackendOptions::Var::IsFloat(), BackendOptions::Var::IsInt(), BackendOptions::Var::IsString(), and BackendOptions::Var::IsUnsignedInt().
Referenced by OptimizerOptions::ToString(), and OptimizerOptionsOpaque::ToString().