OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
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 109 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

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

Constructor require the sequence.

Parameters
dp

Definition at line 125 of file vector_map_iterator.hpp.

Member Function Documentation

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

Get the actual key.

Get the actual key

Returns
the actual key

Definition at line 186 of file vector_map_iterator.hpp.

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

Check if there is the next element.

Check if there is the next element

Returns
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 166 of file vector_map_iterator.hpp.

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

Get the next element.

Get the next element

Returns
the next grid_key

increment the first index

Definition at line 137 of file vector_map_iterator.hpp.

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

Set the dimension.

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

Definition at line 152 of file vector_map_iterator.hpp.


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