Gromacs
2016.6
|
#include <gromacs/selection/symrec.h>
Inherits iterator< std::input_iterator_tag, const SelectionParserSymbol >.
Input iterator for iterating symbols of a given type.
Behaves as standard C++ input 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.
Classes | |
class | Impl |
Private implementation class for SelectionParserSymbolIterator. More... | |
Public Member Functions | |
SelectionParserSymbolIterator (const SelectionParserSymbolIterator &other) | |
Creates an independent copy of an iterator. | |
SelectionParserSymbolIterator & | operator= (const SelectionParserSymbolIterator &other) |
Creates an independent copy of an iterator. | |
bool | operator== (const SelectionParserSymbolIterator &other) const |
Equality comparison for iterators. | |
bool | operator!= (const SelectionParserSymbolIterator &other) const |
Inequality comparison for iterators. | |
reference | operator* () const |
Dereferences the iterator. | |
pointer | operator-> () const |
Dereferences the iterator. | |
SelectionParserSymbolIterator & | operator++ () |
Moves the iterator to the next symbol. | |
SelectionParserSymbolIterator | operator++ (int) |
Moves the iterator to the next symbol. | |
Friends | |
class | SelectionParserSymbolTable |
Needed to access the constructor. | |