ONE - On-device Neural Engine
|
Namespaces | |
namespace | details |
Data Structures | |
class | KVStoreInterface |
class | KVStoreInterface< KVStoreTrait::Queryable > |
struct | ProcessEnvironment |
Enumerations | |
enum class | KVStoreTrait { Queryable } |
Functions | |
template<typename T > | |
std::vector< T > | csv_to_vector (const std::string &str) |
template<typename T > | |
bool | is_one_of (const T &item, const std::vector< T > &items) |
template<> | |
std::vector< std::string > | csv_to_vector (const std::string &str) |
template<> | |
std::vector< int32_t > | csv_to_vector (const std::string &str) |
template<> | |
bool | is_one_of (const std::string &item, const std::vector< std::string > &items) |
template<typename T > | |
T | safe_strcast (const char *s, const T &v) |
Cast a C-string as a value of type T. | |
template<> | |
int | safe_strcast< int > (const char *s, const int &v) |
template<> | |
int | safe_strcast< int > (const char *s, const int &v) |
|
strong |
std::vector< T > pepper::csv_to_vector | ( | const std::string & | str | ) |
std::vector< std::string > pepper::csv_to_vector | ( | const std::string & | str | ) |
Definition at line 26 of file pepper-csv2vec.cpp.
std::vector< int32_t > pepper::csv_to_vector | ( | const std::string & | str | ) |
Definition at line 39 of file pepper-csv2vec.cpp.
bool pepper::is_one_of | ( | const std::string & | item, |
const std::vector< std::string > & | items | ||
) |
Definition at line 53 of file pepper-csv2vec.cpp.
bool pepper::is_one_of | ( | const T & | item, |
const std::vector< T > & | items | ||
) |
T pepper::safe_strcast | ( | const char * | s, |
const T & | v | ||
) |
Cast a C-string as a value of type T.
safe_strcast(s, v) returns v if s is nullptr.
int pepper::safe_strcast< int > | ( | const char * | s, |
const int & | v | ||
) |
Definition at line 24 of file strcast.cpp.
Referenced by hermes::EnvConfig< EnvFormat::BooleanNumber >::EnvConfig().
int pepper::safe_strcast< int > | ( | const char * | s, |
const int & | v | ||
) |
Definition at line 24 of file strcast.cpp.
Referenced by hermes::EnvConfig< EnvFormat::BooleanNumber >::EnvConfig().