A vertex descriptor generator class that generates the descriptors for the smart list storage, and tracks the version number of descriptors. More...
Public Member Functions | |
vdg_base_list (long start) | |
Create a generator which produces descriptors starting from the specified initial offset. | |
vdg_base_list (this_type const &other) | |
VD | next () |
Generates and returns the next vertex descriptor, updating the internal version. | |
void | free (const VD &) |
Possibly reclaim deleted VDs and update internal version. | |
bool | is_valid (VD const &vd) |
Compares version numbers to see if the iterator inside is valid. | |
void | increment () |
Manually increment the version number, if needed for some storage. | |
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 () const |
Return the current descriptor. | |
void | reset () |
Reset the generator to start from descriptor zero (0). Also reset the versioning. More... | |
Protected Attributes | |
size_t | m_curr_vd |
A vertex descriptor generator class that generates the descriptors for the smart list storage, and tracks the version number of descriptors.
void stapl::sequential::vdg_base_list< VD >::reset | ( | void | ) |
Reset the generator to start from descriptor zero (0). Also reset the versioning.