diff options
| author | chai <chaifix@163.com> | 2019-01-19 01:44:05 +0800 |
|---|---|---|
| committer | chai <chaifix@163.com> | 2019-01-19 01:44:05 +0800 |
| commit | 91e589d1678a8187c307e09b98b67ec4133092ff (patch) | |
| tree | ee2761f047568ca7164b27399c0b2fb2f21c26b0 /Source/Asura.Engine/Containers/StringMap.hpp | |
| parent | 91346d709abb37a063d0c29ddeb2d1a849d3afc2 (diff) | |
*游戏框架改用脚本实现
Diffstat (limited to 'Source/Asura.Engine/Containers/StringMap.hpp')
| -rw-r--r-- | Source/Asura.Engine/Containers/StringMap.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Source/Asura.Engine/Containers/StringMap.hpp b/Source/Asura.Engine/Containers/StringMap.hpp new file mode 100644 index 0000000..94858a7 --- /dev/null +++ b/Source/Asura.Engine/Containers/StringMap.hpp @@ -0,0 +1,32 @@ +#ifndef __AE_STRINGMAP_H__ +#define __AE_STRINGMAP_H__ + +#include "String.h" + +namespace AsuraEngine +{ + namespace Containers + { + + /// + /// һ˫һһӦӳ䣬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 |
