filesaver
filesaver::services::InMemoryFileEntryStore Class Reference

#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...
 
DelegategetDelegate ()
 
void setDelegate (Delegate *delegate)
 
void clearDelegate ()
 

Detailed Description

Definition at line 19 of file InMemoryFileEntryStore.h.

Constructor & Destructor Documentation

◆ InMemoryFileEntryStore() [1/2]

filesaver::services::InMemoryFileEntryStore::InMemoryFileEntryStore ( )

Definition at line 10 of file InMemoryFileEntryStore.cpp.

◆ InMemoryFileEntryStore() [2/2]

filesaver::services::InMemoryFileEntryStore::InMemoryFileEntryStore ( Delegate storeDelegate)
explicit

Definition at line 14 of file InMemoryFileEntryStore.cpp.

Member Function Documentation

◆ addEntry()

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.

◆ cleanEntry()

void filesaver::services::InMemoryFileEntryStore::cleanEntry ( const std::string &  filepath)

Clean entry from memory.

Definition at line 43 of file InMemoryFileEntryStore.cpp.

◆ clearDelegate()

void filesaver::services::InMemoryFileEntryStore::clearDelegate ( )

Definition at line 143 of file InMemoryFileEntryStore.cpp.

◆ getCurrentSizeAt()

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.

◆ getDelegate()

InMemoryFileEntryStore::Delegate * filesaver::services::InMemoryFileEntryStore::getDelegate ( )

Definition at line 133 of file InMemoryFileEntryStore.cpp.

◆ getHashMapSize()

size_t filesaver::services::InMemoryFileEntryStore::getHashMapSize ( )

Returns the size of the backing hash-map.

Definition at line 128 of file InMemoryFileEntryStore.cpp.

◆ isPathFinished()

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.

◆ setDelegate()

void filesaver::services::InMemoryFileEntryStore::setDelegate ( InMemoryFileEntryStore::Delegate delegate)

Definition at line 138 of file InMemoryFileEntryStore.cpp.


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