STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Protected Attributes
stapl::sequential::vdg_base_list< VD > Class Template Reference

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
 

Detailed Description

template<class VD>
class stapl::sequential::vdg_base_list< VD >

A vertex descriptor generator class that generates the descriptors for the smart list storage, and tracks the version number of descriptors.

Member Function Documentation

◆ reset()

template<class VD>
void stapl::sequential::vdg_base_list< VD >::reset ( void  )

Reset the generator to start from descriptor zero (0). Also reset the versioning.


The documentation for this class was generated from the following file: