queue/IdTable: add API docs

This commit is contained in:
Max Kellermann 2023-11-26 08:42:02 +01:00
parent 321553d5f9
commit e7b9e8de14

View File

@ -21,8 +21,16 @@ class IdTable {
*/
unsigned initialized = 1;
/**
* An incrementing counter helping GenerateId() to generate
* the next id.
*/
unsigned next = 1;
/**
* A lookup table: the index is the id number and the value is
* the position; -1 means this id is unassigned.
*/
int *const data = new int[size];
public: