#include <LoaderCache.h>
|
| LoaderCache (int capacity) |
|
std::shared_ptr< FileLoader > | Get (const std::string &filename, const std::string &directory="") |
|
void | Remove (const std::string &filename, const std::string &directory="") |
|
|
std::string | GetKey (const std::string &filename, const std::string &directory) |
|
◆ LoaderCache()
LoaderCache::LoaderCache |
( |
int |
capacity | ) |
|
◆ Get()
std::shared_ptr< FileLoader > LoaderCache::Get |
( |
const std::string & |
filename, |
|
|
const std::string & |
directory = "" |
|
) |
| |
◆ GetKey()
std::string LoaderCache::GetKey |
( |
const std::string & |
filename, |
|
|
const std::string & |
directory |
|
) |
| |
|
private |
◆ Remove()
void LoaderCache::Remove |
( |
const std::string & |
filename, |
|
|
const std::string & |
directory = "" |
|
) |
| |
◆ _capacity
int carta::LoaderCache::_capacity |
|
private |
◆ _loader_cache_mutex
std::mutex carta::LoaderCache::_loader_cache_mutex |
|
private |
◆ _map
std::unordered_map<std::string, std::shared_ptr<FileLoader> > carta::LoaderCache::_map |
|
private |
◆ _queue
std::list<std::string> carta::LoaderCache::_queue |
|
private |
The documentation for this class was generated from the following files: