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

Iterator that Iterate across particle indexes. More...

Detailed Description

Iterator that Iterate across particle indexes.

Definition at line 15 of file vector_dist_iterator.hpp.

#include <vector_dist_iterator.hpp>

Public Member Functions

 vector_dist_iterator (size_t start, size_t stop)
 Constructor of the distributed grid.
 
vector_dist_iteratoroperator++ ()
 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
 

Constructor & Destructor Documentation

◆ vector_dist_iterator()

vector_dist_iterator::vector_dist_iterator ( size_t  start,
size_t  stop 
)
inline

Constructor of the distributed grid.

Parameters
startstart point
stopend point

Definition at line 31 of file vector_dist_iterator.hpp.

◆ ~vector_dist_iterator()

vector_dist_iterator::~vector_dist_iterator ( )
inline

Definition at line 37 of file vector_dist_iterator.hpp.

Member Function Documentation

◆ get()

vect_dist_key_dx vector_dist_iterator::get ( )
inline

Get the actual key.

Returns
the actual key

Definition at line 75 of file vector_dist_iterator.hpp.

◆ getOrig()

vect_dist_key_dx vector_dist_iterator::getOrig ( )
inline

Get the actual key.

Returns
the actual key

Definition at line 87 of file vector_dist_iterator.hpp.

◆ isNext()

bool vector_dist_iterator::isNext ( )
inline

Check if there is the next element.

Returns
true if there is the next, false otherwise

Definition at line 60 of file vector_dist_iterator.hpp.

◆ operator++()

vector_dist_iterator & vector_dist_iterator::operator++ ( )
inline

Get the next element.

Returns
the next grid_key

Definition at line 47 of file vector_dist_iterator.hpp.

◆ reset()

void vector_dist_iterator::reset ( )
inline

Reset the iterator.

Definition at line 98 of file vector_dist_iterator.hpp.

Field Documentation

◆ stop

size_t vector_dist_iterator::stop
private

end point

Definition at line 21 of file vector_dist_iterator.hpp.

◆ v_it

size_t vector_dist_iterator::v_it
private

Actual iterator.

Definition at line 18 of file vector_dist_iterator.hpp.


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