SG++-Doxygen-Documentation
|
Iterates over the elements of a permutation. More...
#include <AbstractPermutationIterator.hpp>
Public Member Functions | |
virtual std::shared_ptr< AbstractPermutationIterator > | clone ()=0 |
virtual void | moveToNext ()=0 |
Go to next element of the permutation. More... | |
virtual void | reset ()=0 |
Sets the iterator back to the start. More... | |
virtual size_t | value ()=0 |
Current value of the permutation. More... | |
virtual | ~AbstractPermutationIterator () |
Iterates over the elements of a permutation.
It is assumed that the user already knows the number of elements of the permutation. This class is used internally to obtain grid points in a sorted order, i.e. from left to right, by providing the indices in the correct order.
|
virtual |
|
pure virtual |
|
pure virtual |
Go to next element of the permutation.
Implemented in sgpp::combigrid::SortedPermutationIterator, sgpp::combigrid::ExponentialChebyshevPermutationIterator, sgpp::combigrid::ExponentialLevelorderPermutationIterator, and sgpp::combigrid::ExponentialNoBoundaryPermutationIterator.
|
pure virtual |
Sets the iterator back to the start.
Implemented in sgpp::combigrid::SortedPermutationIterator, sgpp::combigrid::ExponentialChebyshevPermutationIterator, sgpp::combigrid::ExponentialLevelorderPermutationIterator, and sgpp::combigrid::ExponentialNoBoundaryPermutationIterator.
|
pure virtual |
Current value of the permutation.
Implemented in sgpp::combigrid::SortedPermutationIterator, sgpp::combigrid::ExponentialChebyshevPermutationIterator, sgpp::combigrid::ExponentialLevelorderPermutationIterator, and sgpp::combigrid::ExponentialNoBoundaryPermutationIterator.