diff options
author | chai <chaifix@163.com> | 2019-01-30 23:09:54 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-01-30 23:09:54 +0800 |
commit | fc1713e9df3ae8db6e612610023e7bd5f6b6f5fe (patch) | |
tree | b4a06493c102c3b16dabf00327587c4d26429455 /Source/Asura.Engine/StringMap.hpp | |
parent | e4a3a354f523ea12601dae2f7cd89caf7aae6c00 (diff) |
*misc
Diffstat (limited to 'Source/Asura.Engine/StringMap.hpp')
-rw-r--r-- | Source/Asura.Engine/StringMap.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Source/Asura.Engine/StringMap.hpp b/Source/Asura.Engine/StringMap.hpp new file mode 100644 index 0000000..92a157f --- /dev/null +++ b/Source/Asura.Engine/StringMap.hpp @@ -0,0 +1,29 @@ +#ifndef __ASURA_ENGINE_STRINGMAP_H__ +#define __ASURA_ENGINE_STRINGMAP_H__ + +#include "String.h" + +namespace AsuraEngine +{ + + /// + /// һ˫һһӦӳ䣬shader uniformsstatemathine state parameterID + /// + template<typename key_type> + class StringMap + { + public: + + bool ContainsKey(const key_type& key); + + bool ContainsString(const String& str); + + String GetStringByKey(const key_type& key); + + key_type GetKeyByString(const String& str); + + }; + +} + +#endif
\ No newline at end of file |