summaryrefslogtreecommitdiff
path: root/Runner/Utilities/UIDGenerator.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-09-10 20:30:31 +0800
committerchai <chaifix@163.com>2020-09-10 20:30:31 +0800
commit639b34294ffc20721c66db46e59e07d9100ac4b8 (patch)
tree7e1d45b536fa35e9f1559e468ea66fca99524573 /Runner/Utilities/UIDGenerator.h
*init
Diffstat (limited to 'Runner/Utilities/UIDGenerator.h')
-rw-r--r--Runner/Utilities/UIDGenerator.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/Runner/Utilities/UIDGenerator.h b/Runner/Utilities/UIDGenerator.h
new file mode 100644
index 0000000..81918f0
--- /dev/null
+++ b/Runner/Utilities/UIDGenerator.h
@@ -0,0 +1,20 @@
+#ifndef UID_GENERATOR_H
+#define UID_GENERATOR_H
+
+class UIDGenerator
+{
+public:
+ UIDGenerator(int from = 0)
+ : m_Index(from)
+ {
+ };
+ ~UIDGenerator(){};
+
+ int GenUID(){return m_Index++;};
+
+private:
+ int m_Index;
+
+};
+
+#endif \ No newline at end of file