OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
vector_dist_iterator_subset Class Reference

Iterator that Iterate across particle indexes. More...

Detailed Description

Iterator that Iterate across particle indexes.

Definition at line 106 of file vector_dist_iterator.hpp.

#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.
 
vector_dist_iterator_subsetoperator++ ()
 Get the next element.
 
bool isNext ()
 Check if there is the next element.
 
vect_dist_key_dx get ()
 Get the actual key.
 
vect_dist_key_dx getOrig ()
 Get the actual key.
 
void reset ()
 Reset the iterator.
 

Private Attributes

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

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 124 of file vector_dist_iterator.hpp.

◆ ~vector_dist_iterator_subset()

vector_dist_iterator_subset::~vector_dist_iterator_subset ( )
inline

Definition at line 130 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 168 of file vector_dist_iterator.hpp.

◆ getOrig()

vect_dist_key_dx vector_dist_iterator_subset::getOrig ( )
inline

Get the actual key.

Returns
the actual key

Definition at line 180 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 153 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 140 of file vector_dist_iterator.hpp.

◆ reset()

void vector_dist_iterator_subset::reset ( )
inline

Reset the iterator.

Definition at line 191 of file vector_dist_iterator.hpp.

Field Documentation

◆ pid

const openfpm::vector<aggregate<int> >& vector_dist_iterator_subset::pid
private

Definition at line 114 of file vector_dist_iterator.hpp.

◆ stop

size_t vector_dist_iterator_subset::stop
private

end point

Definition at line 112 of file vector_dist_iterator.hpp.

◆ v_it

size_t vector_dist_iterator_subset::v_it
private

Actual iterator.

Definition at line 109 of file vector_dist_iterator.hpp.


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