OpenFPM_data  0.1.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Namespaces Functions Variables Typedefs Friends
CellIterator< Cell > Class Template Reference

it iterate through the elements of a cell More...

Detailed Description

template<typename Cell>
class CellIterator< Cell >

it iterate through the elements of a cell

In general you do not create this object you get it from the CellList structures

Template Parameters
Cellcell type

Definition at line 120 of file CellNNIterator.hpp.

#include <CellNNIterator.hpp>

Public Member Functions

 CellIterator (const size_t cell, Cell &cl)
 Cell iterator. More...
 
bool isNext ()
 Check if there is the next element. More...
 
CellIteratoroperator++ ()
 take the next element More...
 
Cell::value_type & get ()
 Get the value of the cell. More...
 

Private Attributes

Cell & cl
 
size_t ele_id
 
const long int cell
 

Constructor & Destructor Documentation

template<typename Cell>
CellIterator< Cell >::CellIterator ( const size_t  cell,
Cell &  cl 
)
inline

Cell iterator.

Parameters
cellCell id
clCell on which iterate

Definition at line 139 of file CellNNIterator.hpp.

Member Function Documentation

template<typename Cell>
Cell::value_type& CellIterator< Cell >::get ( )
inline

Get the value of the cell.

Returns
the next element object

Definition at line 169 of file CellNNIterator.hpp.

template<typename Cell>
bool CellIterator< Cell >::isNext ( )
inline

Check if there is the next element.

Definition at line 149 of file CellNNIterator.hpp.

template<typename Cell>
CellIterator& CellIterator< Cell >::operator++ ( )
inline

take the next element

Definition at line 157 of file CellNNIterator.hpp.


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