OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <ManagedIDs.h>
Public Member Functions | |
ManagedIDs () | |
size_t | nextID () |
return next free ID More... | |
void | freeID (size_t id) |
free previously allocated ID More... | |
Private Attributes | |
std::queue< size_t > | freeids_ |
queue to handle freed ID's More... | |
size_t | next_free_ |
next free ID More... | |
Definition at line 27 of file ManagedIDs.h.
|
inline |
Definition at line 31 of file ManagedIDs.h.
|
inline |
free previously allocated ID
Definition at line 52 of file ManagedIDs.h.
References freeids_, and next_free_.
|
inline |
return next free ID
Definition at line 35 of file ManagedIDs.h.
References freeids_, and next_free_.
|
private |
queue to handle freed ID's
Definition at line 64 of file ManagedIDs.h.
|
private |