Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
LevelStorageWriteBatch Class Reference

Classes

struct  BatchEntry
class  PerfContext

Public Types

using BatchContainerType = ::std::map<::std::string, ::LevelStorageWriteBatch::BatchEntry>
using const_iterator
using iterator

Public Member Functions

virtual void putKey (::std::string const &key, ::std::string_view data, ::DBHelpers::Category category)
virtual void putKey (::std::string const &key, ::std::string const &data, ::DBHelpers::Category category)
virtual void putKey (::std::string const &key, ::std::string &&data, ::DBHelpers::Category category)
virtual void putKey (::std::string const &key, ::std::shared_ptr<::std::string > data, ::DBHelpers::Category category)
virtual void deleteKey (::std::string const &key, ::DBHelpers::Category category)
virtual void flush (::LevelStorage &db)
MCAPI void _writeKey (::std::string const &key, ::std::shared_ptr<::std::string > &&data, ::DBHelpers::Category category)
MCAPI void addFlushCallback (::std::function< void()> callback)
MCAPI void clear ()
MCAPI void $dtor ()
MCAPI void $putKey (::std::string const &key, ::std::string_view data, ::DBHelpers::Category category)
MCAPI void $putKey (::std::string const &key, ::std::string const &data, ::DBHelpers::Category category)
MCAPI void $putKey (::std::string const &key, ::std::string &&data, ::DBHelpers::Category category)
MCAPI void $putKey (::std::string const &key, ::std::shared_ptr<::std::string > data, ::DBHelpers::Category category)
MCAPI void $deleteKey (::std::string const &key, ::DBHelpers::Category category)
MCAPI void $flush (::LevelStorage &db)

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::std::function< void()> > > mFlushCallbacks
::ll::TypedStorage< 8, 16, ::std::map<::std::string, ::LevelStorageWriteBatch::BatchEntry > > mBatch
::ll::TypedStorage< 8, 80, ::std::mutex > mFlushCallbacksMutex

Member Typedef Documentation

◆ const_iterator

using LevelStorageWriteBatch::const_iterator
Initial value:
::std::_Tree_const_iterator<::std::_Tree_val<
::std::_Tree_simple_types<::std::pair<::std::string const, ::LevelStorageWriteBatch::BatchEntry>>>>

◆ iterator

using LevelStorageWriteBatch::iterator
Initial value:
::std::_Tree_iterator<::std::_Tree_val<
::std::_Tree_simple_types<::std::pair<::std::string const, ::LevelStorageWriteBatch::BatchEntry>>>>

Member Function Documentation

◆ _writeKey()

MCAPI void LevelStorageWriteBatch::_writeKey ( ::std::string const & key,
::std::shared_ptr<::std::string > && data,
::DBHelpers::Category category )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addFlushCallback()

MCAPI void LevelStorageWriteBatch::addFlushCallback ( ::std::function< void()> callback)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ clear()

MCAPI void LevelStorageWriteBatch::clear ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** LevelStorageWriteBatch::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: