Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Friends
gmx::SelectionParserSymbolIterator Class Reference

#include <gromacs/selection/symrec.h>

Inherits iterator_interface< SelectionParserSymbolIterator, std::forward_iterator_tag, const SelectionParserSymbol >.

Description

Forward iterator for iterating symbols of a given type.

Behaves as standard C++ forward iterator. To get an iterator, call SelectionParserSymbolTable::beginIterator(). Each time the iterator is incremented, it moves to the next symbol of the type given when the iterator was created. When there are no more symbols, the iterator will equal SelectionParserSymbolTable::endIterator(). It is not allowed to dereference or increment an iterator that has reached the end.

Construction and assignment may throw std::bad_alloc if out of memory. Other methods do not throw.

See Also
SelectionParserSymbolTable::beginIterator()

Classes

class  Impl
 Private implementation class for SelectionParserSymbolIterator. More...
 

Public Member Functions

 SelectionParserSymbolIterator (const SelectionParserSymbolIterator &other)
 Creates an independent copy of an iterator.
 
SelectionParserSymbolIteratoroperator= (const SelectionParserSymbolIterator &other)
 Creates an independent copy of an iterator.
 
bool operator== (const SelectionParserSymbolIterator &other) const
 Equality comparison for iterators.
 
reference operator* () const
 Dereferences the iterator.
 
SelectionParserSymbolIteratoroperator++ ()
 Moves the iterator to the next symbol.
 

Friends

class SelectionParserSymbolTable
 Needed to access the constructor.
 

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