blob: b5f7386aaf175a6611220c5b31f11a93fa8782df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "UnityPrefix.h"
#include "Runtime/Utilities/dynamic_array.h"
// Class to generate small unique IDs with allocate and remove functions.
class UniqueIDGenerator
{
public:
UniqueIDGenerator();
unsigned int AllocateID();
void RemoveID( unsigned int _ID);
private:
dynamic_array<unsigned int> m_IDs;
unsigned int m_free;
};
|