20.02
|
Very basic type safe variant. More...
#include <BackendOptions.hpp>
Public Member Functions | |
Var (int i) | |
Constructors. More... | |
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 | IsFloat () const |
bool | IsString () const |
bool | AsBool () const |
Value getters. More... | |
int | AsInt () const |
float | AsFloat () const |
std::string | AsString () const |
~Var () | |
Destructor. More... | |
Very basic type safe variant.
Definition at line 31 of file BackendOptions.hpp.
|
inlineexplicit |
Constructors.
Definition at line 36 of file BackendOptions.hpp.
|
inlineexplicit |
Definition at line 37 of file BackendOptions.hpp.
|
inlineexplicit |
Definition at line 38 of file BackendOptions.hpp.
|
inlineexplicit |
Definition at line 39 of file BackendOptions.hpp.
|
inlineexplicit |
Definition at line 40 of file BackendOptions.hpp.
|
inline |
Disallow implicit conversions from types not explicitly allowed below.
Definition at line 44 of file BackendOptions.hpp.
Copy Construct.
Definition at line 51 of file BackendOptions.hpp.
|
inline |
Destructor.
Definition at line 116 of file BackendOptions.hpp.
References armnn::Boolean, BackendOptions::Var::IsBool(), BackendOptions::Var::IsFloat(), BackendOptions::Var::IsInt(), and BackendOptions::Var::IsString().
|
inline |
Value getters.
Definition at line 110 of file BackendOptions.hpp.
Referenced by armnn::ParseBoolean().
|
inline |
Definition at line 112 of file BackendOptions.hpp.
|
inline |
Definition at line 111 of file BackendOptions.hpp.
|
inline |
|
inline |
Type getters.
Definition at line 104 of file BackendOptions.hpp.
References armnn::Boolean.
Referenced by armnn::ParseBoolean(), and BackendOptions::Var::~Var().
|
inline |
Definition at line 106 of file BackendOptions.hpp.
Referenced by BackendOptions::Var::~Var().
|
inline |
Definition at line 105 of file BackendOptions.hpp.
Referenced by armnn::ParseTuningLevel(), and BackendOptions::Var::~Var().
|
inline |
Definition at line 107 of file BackendOptions.hpp.
Referenced by armnn::ParseFile(), and BackendOptions::Var::~Var().