A vertex descriptor generator class that generates the descriptors for the smart vector storage, and tracks the version number of descriptors. More...
Public Member Functions | |
| vdg_base_vector (long start) | |
| Create a generator which produces descriptors starting from the specified initial offset. | |
| VD | next () |
| Generates and returns the next vertex descriptor, updating the internal version. | |
| void | free (VD const &) |
| 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 (const VD &_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 vector storage, and tracks the version number of descriptors.
| void stapl::sequential::vdg_base_vector< VD >::reset | ( | void | ) |
Reset the generator to start from descriptor zero (0). Also reset the versioning.
1.8.13