ParM  parm
A molecular dynamics library
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GridIterator Class Reference

For iterating over all possible pairs. More...

#include <trackers.hpp>

Public Member Functions

 GridIterator (Grid &grid)
 
 GridIterator (Grid &grid, vector< set< AtomID > >::iterator cell1)
 
GridIteratoroperator++ ()
 
IDPair operator* ()
 
bool operator== (const GridIterator &other)
 
bool operator!= (const GridIterator &other)
 

Protected Member Functions

bool increment_cell1 ()
 
bool increment_atom1 ()
 
bool increment_cell2 ()
 
bool increment_atom2 ()
 

Protected Attributes

Gridgrid
 
vector< set< AtomID > >::iterator cell1
 
set< AtomID >::iterator atom1
 
vector< uintneighbor_cells
 
vector< uint >::iterator cellnum2
 
set< AtomID > * cell2
 
set< AtomID >::iterator atom2
 

Detailed Description

For iterating over all possible pairs.

Constructor & Destructor Documentation

GridIterator::GridIterator ( Grid grid)
GridIterator::GridIterator ( Grid grid,
vector< set< AtomID > >::iterator  cell1 
)

Member Function Documentation

bool GridIterator::increment_atom1 ( )
protected
bool GridIterator::increment_atom2 ( )
protected
bool GridIterator::increment_cell1 ( )
protected
bool GridIterator::increment_cell2 ( )
protected
bool GridIterator::operator!= ( const GridIterator other)
inline
IDPair GridIterator::operator* ( )
inline
GridIterator & GridIterator::operator++ ( )
bool GridIterator::operator== ( const GridIterator other)

Member Data Documentation

set<AtomID>::iterator GridIterator::atom1
protected
set<AtomID>::iterator GridIterator::atom2
protected
vector<set<AtomID> >::iterator GridIterator::cell1
protected
set<AtomID>* GridIterator::cell2
protected
vector<uint>::iterator GridIterator::cellnum2
protected
Grid& GridIterator::grid
protected
vector<uint> GridIterator::neighbor_cells
protected

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