Skip to content

joaohudson/IDManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IDManager class, manager the index allocation with cost:

New: O(1)

Delete: O(1)

HasNext: O(1)

Next: O(1)

IsValid: O(1)

Reset: O(n)

Default use:

while(idManager.HasNext()){

idManager.Next();//use the value returned here

}

idManager.Reset();//iteration end

About

Data structure for fast indexed allocation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages