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

For iterating over all pairs of a single Atom. More...

#include <trackers.hpp>

Public Types

typedef set< AtomID >::iterator end_type
 

Public Member Functions

 GridPairedIterator (Grid &grid, AtomID a)
 
GridPairedIteratoroperator++ ()
 
AtomID operator* ()
 
bool operator== (const GridPairedIterator &other)
 
bool operator!= (const GridPairedIterator &other)
 
bool operator== (const end_type other)
 
bool operator!= (const end_type other)
 
end_type end ()
 

Protected Member Functions

bool increment_cell2 ()
 returns "successful increment", e.g. More...
 
bool increment_atom2 ()
 

Protected Attributes

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

Detailed Description

For iterating over all pairs of a single Atom.

Member Typedef Documentation

typedef set<AtomID>::iterator GridPairedIterator::end_type

Constructor & Destructor Documentation

GridPairedIterator::GridPairedIterator ( Grid grid,
AtomID  a 
)

Member Function Documentation

end_type GridPairedIterator::end ( )
inline
bool GridPairedIterator::increment_atom2 ( )
protected
bool GridPairedIterator::increment_cell2 ( )
protected

returns "successful increment", e.g.

cell1 points to an element

bool GridPairedIterator::operator!= ( const GridPairedIterator other)
inline
bool GridPairedIterator::operator!= ( const end_type  other)
inline
AtomID GridPairedIterator::operator* ( )
inline
GridPairedIterator & GridPairedIterator::operator++ ( )
bool GridPairedIterator::operator== ( const GridPairedIterator other)
bool GridPairedIterator::operator== ( const end_type  other)
inline

Member Data Documentation

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

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