![]() |
VR-Forces 4.10 Class Documentation
|
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. More...
Classes | |
| struct | TextureFileNameOperation |
Public Member Functions | |
| DtPossibleFileNamesCache (DtDe &de) | |
| constructor More... | |
| virtual | ~DtPossibleFileNamesCache () |
| destructor More... | |
| virtual bool | hasUnderScoreInPossibleFileNames (void) const |
| whether the map has any names with '_' More... | |
| virtual bool | keyExists (const std::string &key) const |
| does this key exist? More... | |
| virtual void | updateCache (const std::string &texturePath) |
| Update the possible effect texture names, given this texture path. More... | |
| virtual void | transform (TextureFileNameOperation *op) const |
| Do an operation on all keys. More... | |
Static Public Member Functions | |
| static void | clear () |
| Clear out maps of directories and file names used for speeding up loading. More... | |
Protected Types | |
| typedef std::map< std::string, std::string > | FileNameMap |
Protected Member Functions | |
| std::string | getPrefix (const std::string &texPath) |
| utility function for getting the prefix of a texture. More... | |
Protected Attributes | |
| FileNameMap | myPossibleFileNames |
| std::string | myTexturePath |
| boost::mutex | myMutex |
| DtDe & | myDe |
Static Protected Attributes | |
| static tbb::spin_rw_mutex | theMapMutex |
| static boost::unordered_map < std::string, boost::unordered_map < std::string, std::string > > | theDirRegToLowerCaseFileMap |
| static boost::unordered_map < std::string, std::set < std::string > > | theDirLowerCaseFileSet |
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.
|
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 |