OpenMS
HashGrid< Cluster >::ConstIterator Class Reference

Constant element iterator for the hash grid. More...

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

Private Types

typedef Grid::const_iterator grid_iterator
 
typedef CellContent::const_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...
 
const Gridgrid_
 
grid_iterator grid_it_
 
cell_iterator cell_it_
 
void searchNextCell_ ()
 
 ConstIterator (const Grid &grid)
 
 ConstIterator (const Grid &grid, grid_iterator grid_it, cell_iterator cell_it)
 
 ConstIterator (const Iterator &it)
 
ConstIteratoroperator++ ()
 
const ConstIterator operator++ (int)
 
bool operator== (const ConstIterator &rhs) const
 
bool operator!= (const ConstIterator &rhs) const
 
const value_typeoperator* () const
 
const value_typeoperator-> () const
 
const CellIndex index () const
 

Detailed Description

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

Constant element iterator for the hash grid.

Member Typedef Documentation

◆ cell_iterator

typedef CellContent::const_iterator cell_iterator
private

◆ difference_type

using difference_type = std::ptrdiff_t
private

The difference type.

◆ grid_iterator

typedef Grid::const_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

◆ ConstIterator() [1/3]

ConstIterator ( const Grid grid)
inline

◆ ConstIterator() [2/3]

ConstIterator ( const Grid grid,
grid_iterator  grid_it,
cell_iterator  cell_it 
)
inline

◆ ConstIterator() [3/3]

ConstIterator ( const Iterator it)
inline

Member Function Documentation

◆ index()

const CellIndex index ( ) const
inline

◆ operator!=()

bool operator!= ( const ConstIterator rhs) const
inline

◆ operator*()

const value_type& operator* ( ) const
inline

◆ operator++() [1/2]

◆ operator++() [2/2]

const ConstIterator operator++ ( int  )
inline

◆ operator->()

const value_type* operator-> ( ) const
inline

◆ operator==()

◆ searchNextCell_()

Friends And Related Function Documentation

◆ HashGrid

friend class HashGrid
friend

Member Data Documentation

◆ cell_it_

◆ grid_

const Grid& grid_
private

◆ grid_it_