![]() |
VR-Forces Developer's Guide
|
A thread safe cache containing a list of possible file names for effect textures, based on the current path All methods on this are thread safe.
Classes | |
| struct | TextureFileNameOperation |
Public Member Functions | |
| DtPossibleFileNamesCache (DtDe &de) | |
| virtual | ~DtPossibleFileNamesCache () |
| virtual bool | hasUnderScoreInPossibleFileNames (void) const |
| virtual bool | keyExists (const std::string &key) const |
| virtual void | updateCache (const std::string &texturePath) |
| virtual void | transform (TextureFileNameOperation *op) const |
Static Public Member Functions | |
| static void | clear () |
Protected Types | |
| typedef std::map< std::string, std::string > | FileNameMap |
Protected Member Functions | |
| std::string | getPrefix (const std::string &texPath) |
Protected Attributes | |
| FileNameMap | myPossibleFileNames |
| std::string | myTexturePath |
| boost::mutex | myMutex |
| DtDe & | myDe |
Static Protected Attributes | |
| static tbb::spin_rw_mutex | theMapMutex |
| static std::unordered_map < std::string, std::unordered_map < std::string, std::string > > | theDirRegToLowerCaseFileMap |
| static std::unordered_map < std::string, std::set < std::string > > | theDirLowerCaseFileSet |
|
protected |
| makVrv::DtPossibleFileNamesCache::DtPossibleFileNamesCache | ( | DtDe & | de | ) |
constructor
|
virtual |
destructor
|
virtual |
whether the map has any names with '_'
|
virtual |
does this key exist?
|
virtual |
Update the possible effect texture names, given this texture path.
|
virtual |
Do an operation on all keys. thread safe, until doContinue is true Operations will inherit from TextureFileNameOperation and override doOperation, doContinue This can be useful for say, iterating over all file names, and checking until a criteria is met (e.g. file names containing an '_')
|
static |
Clear out maps of directories and file names used for speeding up loading.
|
protected |
utility function for getting the prefix of a texture.
|
protected |
|
protected |
|
mutableprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |