Base class for vertex descriptor generators.This class will generate unique vertex descriptors, taking into account that the graph may auto generate them, as well as the users may specify them. This is used by vdg_storage_int to generate/delete/find vertices. More...
Public Member Functions | |
vdg_base_int (long start) | |
Create a generator which produces descriptors starting from the specified initial offset. | |
VD | next (void) |
Generates and returns the next vertex descriptor. | |
void | free (const VD &) |
Reclaim deleted VDs. Not used in this class. | |
bool | is_valid (const VD &) |
Compares version numbers to see if the iterator inside is valid. Used in versioning generators. Unused in this class. | |
void | increment (void) |
Manually increment the version number, if needed for some storage. Unused in this class. | |
void | update (VD const &vd) |
Integrate the current VD into the generated sequence – future invocations of next() should not produce this VD. | |
VD | curr_vd (void) const |
Return the current descriptor. | |
void | reset (void) |
Reset the generator to start from descriptor zero (0). More... | |
Protected Attributes | |
size_t | m_curr_vd |
Base class for vertex descriptor generators.
This class will generate unique vertex descriptors, taking into account that the graph may auto generate them, as well as the users may specify them. This is used by vdg_storage_int to generate/delete/find vertices.
void stapl::sequential::vdg_base_int< VD >::reset | ( | void | ) |
Reset the generator to start from descriptor zero (0).