![]() |
VR-Forces 4.6 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 () | |
| constructor | |
| virtual | ~DtPossibleFileNamesCache () |
| destructor | |
| virtual bool | hasUnderScoreInPossibleFileNames (void) const |
| whether the map has any names with '_' | |
| virtual bool | keyExists (const std::string &key) const |
| does this key exist? | |
| virtual void | updateCache (const std::string &texturePath) |
| Update the possible effect texture names, given this texture path. | |
| virtual void | transform (TextureFileNameOperation *op) const |
| Do an operation on all keys. | |
Protected Types | |
| typedef std::map< std::string, std::string > | FileNameMap |
Protected Attributes | |
| FileNameMap | myPossibleFileNames |
| std::string | myTexturePath |
| boost::mutex | myMutex |
| boost::unordered_map < std::string, boost::unordered_map < std::string, std::string > > | myDirRegToLowerCaseFileMap |
| boost::unordered_map < std::string, std::set < std::string > > | myDirLowerCaseFileSet |
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 | ( | ) |
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 '_')
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |