filesaver
|
#include <InMemoryFileEntryStore.h>
Classes | |
class | Delegate |
struct | Record |
Public Member Functions | |
InMemoryFileEntryStore () | |
InMemoryFileEntryStore (Delegate *storeDelegate) | |
void | addEntry (std::shared_ptr< FileEntry > entry) |
Push an entry onto the in-memory store. More... | |
void | cleanEntry (const std::string &filepath) |
Clean entry from memory. More... | |
std::optional< off_t > | getCurrentSizeAt (const std::string &filepath) |
Get the current in-memory size for a path. More... | |
bool | isPathFinished (const std::string &filepath) |
Return true if this path has been finished. More... | |
size_t | getHashMapSize () |
Returns the size of the backing hash-map. More... | |
Delegate * | getDelegate () |
void | setDelegate (Delegate *delegate) |
void | clearDelegate () |
Definition at line 19 of file InMemoryFileEntryStore.h.
filesaver::services::InMemoryFileEntryStore::InMemoryFileEntryStore | ( | ) |
Definition at line 10 of file InMemoryFileEntryStore.cpp.
|
explicit |
Definition at line 14 of file InMemoryFileEntryStore.cpp.
void filesaver::services::InMemoryFileEntryStore::addEntry | ( | std::shared_ptr< FileEntry > | entry | ) |
Push an entry onto the in-memory store.
Definition at line 18 of file InMemoryFileEntryStore.cpp.
void filesaver::services::InMemoryFileEntryStore::cleanEntry | ( | const std::string & | filepath | ) |
Clean entry from memory.
Definition at line 43 of file InMemoryFileEntryStore.cpp.
void filesaver::services::InMemoryFileEntryStore::clearDelegate | ( | ) |
Definition at line 143 of file InMemoryFileEntryStore.cpp.
std::optional< off_t > filesaver::services::InMemoryFileEntryStore::getCurrentSizeAt | ( | const std::string & | filepath | ) |
Get the current in-memory size for a path.
Definition at line 55 of file InMemoryFileEntryStore.cpp.
InMemoryFileEntryStore::Delegate * filesaver::services::InMemoryFileEntryStore::getDelegate | ( | ) |
Definition at line 133 of file InMemoryFileEntryStore.cpp.
size_t filesaver::services::InMemoryFileEntryStore::getHashMapSize | ( | ) |
Returns the size of the backing hash-map.
Definition at line 128 of file InMemoryFileEntryStore.cpp.
bool filesaver::services::InMemoryFileEntryStore::isPathFinished | ( | const std::string & | filepath | ) |
Return true if this path has been finished.
Definition at line 65 of file InMemoryFileEntryStore.cpp.
void filesaver::services::InMemoryFileEntryStore::setDelegate | ( | InMemoryFileEntryStore::Delegate * | delegate | ) |
Definition at line 138 of file InMemoryFileEntryStore.cpp.