VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Attributes
makVrv::DtPossibleFileNamesCache Class Reference

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

Detailed Description

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.

Member Typedef Documentation

typedef std::map<std::string, std::string> makVrv::DtPossibleFileNamesCache::FileNameMap
protected

Constructor & Destructor Documentation

makVrv::DtPossibleFileNamesCache::DtPossibleFileNamesCache ( )

constructor

virtual makVrv::DtPossibleFileNamesCache::~DtPossibleFileNamesCache ( )
virtual

destructor

Member Function Documentation

virtual bool makVrv::DtPossibleFileNamesCache::hasUnderScoreInPossibleFileNames ( void  ) const
virtual

whether the map has any names with '_'

virtual bool makVrv::DtPossibleFileNamesCache::keyExists ( const std::string &  key) const
virtual

does this key exist?

virtual void makVrv::DtPossibleFileNamesCache::updateCache ( const std::string &  texturePath)
virtual

Update the possible effect texture names, given this texture path.

virtual void makVrv::DtPossibleFileNamesCache::transform ( TextureFileNameOperation op) const
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 '_')

Member Data Documentation

FileNameMap makVrv::DtPossibleFileNamesCache::myPossibleFileNames
protected
std::string makVrv::DtPossibleFileNamesCache::myTexturePath
protected
boost::mutex makVrv::DtPossibleFileNamesCache::myMutex
mutableprotected
boost::unordered_map<std::string, boost::unordered_map<std::string, std::string> > makVrv::DtPossibleFileNamesCache::myDirRegToLowerCaseFileMap
protected
boost::unordered_map<std::string, std::set<std::string> > makVrv::DtPossibleFileNamesCache::myDirLowerCaseFileSet
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)