OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
openfpm::vector_key_iterator_seq< lid > Class Template Reference

Vector iterator. More...

Detailed Description

template<typename lid>
class openfpm::vector_key_iterator_seq< lid >

Vector iterator.

Vector iterator over a predefined sequence

Definition at line 200 of file vector_map_iterator.hpp.

#include <vector_map_iterator.hpp>

Public Member Functions

 vector_key_iterator_seq (openfpm::vector< lid > &dp)
 Constructor require the sequence. More...
vector_key_iterator_seq< lid > & operator++ ()
 Get the next element. More...
void set (int d, size_t sz)
 Set the dimension. More...
bool isNext () const
 Check if there is the next element. More...
size_t get () const
 Get the actual key. More...

Protected Attributes

size_t gk
 Actual key.

Private Attributes

openfpm::vector< lid > & dp

Constructor & Destructor Documentation

◆ vector_key_iterator_seq()

template<typename lid >
openfpm::vector_key_iterator_seq< lid >::vector_key_iterator_seq ( openfpm::vector< lid > &  dp)

Constructor require the sequence.


Definition at line 216 of file vector_map_iterator.hpp.

Member Function Documentation

◆ get()

template<typename lid >
size_t openfpm::vector_key_iterator_seq< lid >::get ( ) const

Get the actual key.

Get the actual key

the actual key

Definition at line 277 of file vector_map_iterator.hpp.

◆ isNext()

template<typename lid >
bool openfpm::vector_key_iterator_seq< lid >::isNext ( ) const

Check if there is the next element.

Check if there is the next element

true if there is the next, false otherwise

we did not reach the end of the grid

we reach the end of the grid

Definition at line 257 of file vector_map_iterator.hpp.

◆ operator++()

template<typename lid >
vector_key_iterator_seq<lid>& openfpm::vector_key_iterator_seq< lid >::operator++ ( )

Get the next element.

Get the next element

the next grid_key

increment the first index

Definition at line 228 of file vector_map_iterator.hpp.

◆ set()

template<typename lid >
void openfpm::vector_key_iterator_seq< lid >::set ( int  d,
size_t  sz 

Set the dimension.

dis the dimension (IGNORED is by default 0)
szset the counter to sz

Definition at line 243 of file vector_map_iterator.hpp.

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