HDK
|
#include <GU_AgentFileCache.h>
Public Member Functions | |
template<typename F > | |
UT_IntrusivePtr< T > | findCachedFileOrLoad (const UT_StringRef &filename, const UT_StringRef &key, F load_new_item) |
void | removeCachedFile (const UT_StringRef &key) |
Removes a cached file with the given key. More... | |
Definition at line 22 of file GU_AgentFileCache.h.
|
inline |
Searches for a cached file with the same key, and returns it if the timestamp matches the file on disk. Otherwise, the callback is invoked to load the file, which is then inserted into the cache and returned. The key should include the filename and any dependencies on other agent files (e.g. when loading the same clip for slightly different rigs).
Definition at line 63 of file GU_AgentFileCache.h.
|
inline |
Removes a cached file with the given key.
Definition at line 105 of file GU_AgentFileCache.h.