SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
ma::Storage Class Referenceabstract

#include <ma_storage.h>

Collaboration diagram for ma::Storage:

Public Member Functions

 Storage ()
 
virtual ~Storage ()=default
 
 Storage (const Storage &)=delete
 
Storageoperator= (const Storage &)=delete
 
virtual ma_err_t init (const void *config) noexcept=0
 
virtual void deInit () noexcept=0
 
 operator bool () const noexcept
 
virtual ma_err_t set (const std::string &key, int64_t value) noexcept=0
 
virtual ma_err_t set (const std::string &key, double value) noexcept=0
 
virtual ma_err_t get (const std::string &key, int64_t &value) noexcept=0
 
virtual ma_err_t get (const std::string &key, double &value) noexcept=0
 
virtual ma_err_t set (const std::string &key, const void *value, size_t size) noexcept=0
 
virtual ma_err_t get (const std::string &key, std::string &value) noexcept=0
 
virtual ma_err_t remove (const std::string &key) noexcept=0
 
virtual bool exists (const std::string &key) noexcept=0
 

Protected Attributes

bool m_initialized
 

Constructor & Destructor Documentation

◆ Storage() [1/2]

ma::Storage::Storage ( )
inline

◆ ~Storage()

virtual ma::Storage::~Storage ( )
virtualdefault

◆ Storage() [2/2]

ma::Storage::Storage ( const Storage )
delete

Member Function Documentation

◆ deInit()

virtual void ma::Storage::deInit ( )
pure virtualnoexcept

◆ exists()

virtual bool ma::Storage::exists ( const std::string &  key)
pure virtualnoexcept

◆ get() [1/3]

virtual ma_err_t ma::Storage::get ( const std::string &  key,
double &  value 
)
pure virtualnoexcept

◆ get() [2/3]

virtual ma_err_t ma::Storage::get ( const std::string &  key,
int64_t &  value 
)
pure virtualnoexcept

◆ get() [3/3]

virtual ma_err_t ma::Storage::get ( const std::string &  key,
std::string &  value 
)
pure virtualnoexcept

◆ init()

virtual ma_err_t ma::Storage::init ( const void *  config)
pure virtualnoexcept

◆ operator bool()

ma::Storage::operator bool ( ) const
inlinenoexcept

◆ operator=()

Storage& ma::Storage::operator= ( const Storage )
delete

◆ remove()

virtual ma_err_t ma::Storage::remove ( const std::string &  key)
pure virtualnoexcept

◆ set() [1/3]

virtual ma_err_t ma::Storage::set ( const std::string &  key,
const void *  value,
size_t  size 
)
pure virtualnoexcept

◆ set() [2/3]

virtual ma_err_t ma::Storage::set ( const std::string &  key,
double  value 
)
pure virtualnoexcept

◆ set() [3/3]

virtual ma_err_t ma::Storage::set ( const std::string &  key,
int64_t  value 
)
pure virtualnoexcept

Member Data Documentation

◆ m_initialized

bool ma::Storage::m_initialized
protected