OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
ParticleIt_CellP< T > Class Template Reference

Detailed Description

template<typename T>
class ParticleIt_CellP< T >

Definition at line 13 of file CellListIterator.hpp.

Public Member Functions

 ParticleIt_CellP (T &NN)
 
ParticleIt_CellPoperator++ ()
 Get the next element.
 
bool isNext ()
 Checks if there is a next element.
 
size_t get ()
 Get the real particle id.
 
void reset ()
 Reset an iterator (set the counters to the first valid ones)
 

Private Member Functions

void fp ()
 Handles incrementing of cells and particles counters.
 

Private Attributes

T & NN
 Cell lisy.
 
size_t cell_count
 Cells counter.
 
long int p_count
 Particles counter.
 

Constructor & Destructor Documentation

◆ ParticleIt_CellP()

template<typename T >
ParticleIt_CellP< T >::ParticleIt_CellP ( T &  NN)
inline

Definition at line 49 of file CellListIterator.hpp.

◆ ~ParticleIt_CellP()

template<typename T >
ParticleIt_CellP< T >::~ParticleIt_CellP ( )
inline

Definition at line 56 of file CellListIterator.hpp.

Member Function Documentation

◆ fp()

template<typename T >
void ParticleIt_CellP< T >::fp ( )
inlineprivate

Handles incrementing of cells and particles counters.

Definition at line 30 of file CellListIterator.hpp.

◆ get()

template<typename T >
size_t ParticleIt_CellP< T >::get ( )
inline

Get the real particle id.

Returns
the real particle id

Definition at line 101 of file CellListIterator.hpp.

◆ isNext()

template<typename T >
bool ParticleIt_CellP< T >::isNext ( )
inline

Checks if there is a next element.

Returns
true if there is the next, false otherwise

Definition at line 84 of file CellListIterator.hpp.

◆ operator++()

template<typename T >
ParticleIt_CellP & ParticleIt_CellP< T >::operator++ ( )
inline

Get the next element.

Returns
cell list iterator

Definition at line 67 of file CellListIterator.hpp.

◆ reset()

template<typename T >
void ParticleIt_CellP< T >::reset ( )
inline

Reset an iterator (set the counters to the first valid ones)

Definition at line 112 of file CellListIterator.hpp.

Field Documentation

◆ cell_count

template<typename T >
size_t ParticleIt_CellP< T >::cell_count
private

Cells counter.

Definition at line 21 of file CellListIterator.hpp.

◆ NN

template<typename T >
T& ParticleIt_CellP< T >::NN
private

Cell lisy.

Definition at line 18 of file CellListIterator.hpp.

◆ p_count

template<typename T >
long int ParticleIt_CellP< T >::p_count
private

Particles counter.

Definition at line 24 of file CellListIterator.hpp.


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