OpenMS
HashGrid< Cluster >::Iterator Class Reference

Element iterator for the hash grid. More...

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

Private Types

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

Friends

class HashGrid
 

Typedefs for STL compliance, these replace std::iterator

using iterator_category = std::input_iterator_tag
 The iterator's category type. More...
 
using value_type = HashGrid::value_type
 The iterator's value type. More...
 
using reference = value_type &
 The reference type as returned by operator*() More...
 
using pointer = value_type *
 The pointer type as returned by operator->() More...
 
using difference_type = std::ptrdiff_t
 The difference type. More...
 
Gridgrid_
 
grid_iterator grid_it_
 
cell_iterator cell_it_
 
void searchNextCell_ ()
 
 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
 

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

◆ difference_type

using difference_type = std::ptrdiff_t
private

The difference type.

◆ grid_iterator

typedef Grid::iterator grid_iterator
private

◆ iterator_category

using iterator_category = std::input_iterator_tag
private

The iterator's category type.

◆ pointer

using pointer = value_type*
private

The pointer type as returned by operator->()

◆ reference

using reference = value_type&
private

The reference type as returned by operator*()

◆ value_type

The iterator's value type.

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]

◆ operator++() [2/2]

const Iterator operator++ ( int  )
inline

◆ operator->()

value_type* operator-> ( ) const
inline

◆ operator==()

bool operator== ( const Iterator rhs) const
inline

◆ searchNextCell_()

Friends And Related Function Documentation

◆ HashGrid

friend class HashGrid
friend

Member Data Documentation

◆ cell_it_

◆ grid_

◆ grid_it_