OpenFPM  5.2.0
Project that contain the implementation of distributed structures
vector_dist_iterator_subset Class Reference

Iterator that Iterate across particle indexes. More...

#include <vector_dist_iterator.hpp>

Public Member Functions

 vector_dist_iterator_subset (size_t start, size_t stop, const openfpm::vector< aggregate< int >> &pid)
 Constructor of the distributed grid. More...
 
vector_dist_iterator_subsetoperator++ ()
 Get the next element. More...
 
bool isNext ()
 Check if there is the next element. More...
 
vect_dist_key_dx get ()
 Get the actual key. More...
 
vect_dist_key_dx getSubset ()
 Get the subset key. More...
 
void reset ()
 Reset the iterator.
 

Private Attributes

size_t v_it
 Actual iterator.
 
size_t stop
 end point
 
const openfpm::vector< aggregate< int > > & pid
 

Detailed Description

Iterator that Iterate across particle indexes.

Definition at line 94 of file vector_dist_iterator.hpp.

Constructor & Destructor Documentation

◆ vector_dist_iterator_subset()

vector_dist_iterator_subset::vector_dist_iterator_subset ( size_t  start,
size_t  stop,
const openfpm::vector< aggregate< int >> &  pid 
)
inline

Constructor of the distributed grid.

Parameters
startstart point
stopend point

Definition at line 112 of file vector_dist_iterator.hpp.

Member Function Documentation

◆ get()

vect_dist_key_dx vector_dist_iterator_subset::get ( )
inline

Get the actual key.

Returns
the actual key

Definition at line 156 of file vector_dist_iterator.hpp.

◆ getSubset()

vect_dist_key_dx vector_dist_iterator_subset::getSubset ( )
inline

Get the subset key.

Returns
the subset key

Definition at line 168 of file vector_dist_iterator.hpp.

◆ isNext()

bool vector_dist_iterator_subset::isNext ( )
inline

Check if there is the next element.

Returns
true if there is the next, false otherwise

Definition at line 141 of file vector_dist_iterator.hpp.

◆ operator++()

vector_dist_iterator_subset& vector_dist_iterator_subset::operator++ ( )
inline

Get the next element.

Returns
the next grid_key

Definition at line 128 of file vector_dist_iterator.hpp.


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