OpenMS  2.7.0
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
HashGrid< Cluster >::Iterator Class Reference

Element iterator for the hash grid. More...

Inheritance diagram for HashGrid< Cluster >::Iterator:
[legend]
Collaboration diagram for HashGrid< Cluster >::Iterator:
[legend]

Public Member Functions

 Iterator (Grid &grid)
 
 Iterator (Grid &grid, grid_iterator grid_it, cell_iterator cell_it)
 
Iteratoroperator++ ()
 
const Iterator operator++ (int)
 
bool operator== (const Iterator &rhs) const
 
bool operator!= (const Iterator &rhs) const
 
value_typeoperator* () const
 
value_typeoperator-> () const
 
const CellIndex index () const
 

Private Types

typedef Grid::iterator grid_iterator
 
typedef CellContent::iterator cell_iterator
 

Private Member Functions

void searchNextCell_ ()
 

Private Attributes

Gridgrid_
 
grid_iterator grid_it_
 
cell_iterator cell_it_
 

Friends

class HashGrid
 

Detailed Description

template<typename Cluster>
class OpenMS::HashGrid< Cluster >::Iterator

Element iterator for the hash grid.

Member Typedef Documentation

◆ cell_iterator

typedef CellContent::iterator cell_iterator
private

◆ grid_iterator

typedef Grid::iterator grid_iterator
private

Constructor & Destructor Documentation

◆ Iterator() [1/2]

Iterator ( Grid grid)
inlineexplicit

◆ Iterator() [2/2]

Iterator ( Grid grid,
grid_iterator  grid_it,
cell_iterator  cell_it 
)
inline

Member Function Documentation

◆ index()

const CellIndex index ( ) const
inline

◆ operator!=()

bool operator!= ( const Iterator rhs) const
inline

◆ operator*()

value_type& operator* ( ) const
inline

◆ operator++() [1/2]

Iterator& operator++ ( )
inline

◆ operator++() [2/2]

const Iterator operator++ ( int  )
inline

◆ operator->()

value_type* operator-> ( ) const
inline

◆ operator==()

bool operator== ( const Iterator rhs) const
inline

◆ searchNextCell_()

void searchNextCell_ ( )
inlineprivate

Friends And Related Function Documentation

◆ HashGrid

friend class HashGrid
friend

Member Data Documentation

◆ cell_it_

cell_iterator cell_it_
private

◆ grid_

Grid& grid_
private

◆ grid_it_

grid_iterator grid_it_
private