SG++-Doxygen-Documentation
|
Iterator class that travels "along" a MultiIndexIterator through a TreeStorage. More...
#include <TreeStorageGuidedIterator.hpp>
Public Member Functions | |
virtual bool | computationRequested () |
virtual MultiIndex | getMultiIndex () const |
virtual size_t | indexAt (size_t d) const |
virtual bool | isValid () |
virtual int | moveToNext () |
virtual std::function< T()> | requestComputationTask () |
virtual void | setValue (T const &input) |
Sets a value at the current entry. More... | |
TreeStorageGuidedIterator (IterationPolicy const &policy, AbstractTreeStorageNode< T > *root, size_t numDimensions, MultiIndexIterator &iterator) | |
The number of dimensions is also contained in the iterator, but it is passed separately, so the casts below can't fail because of an iterator with a wrong number of dimensions. More... | |
virtual T & | value () |
virtual | ~TreeStorageGuidedIterator () |
Public Member Functions inherited from sgpp::combigrid::AbstractMultiStorageIterator< T > | |
virtual | ~AbstractMultiStorageIterator () |
Iterator class that travels "along" a MultiIndexIterator through a TreeStorage.
If entries are not already contained, they are created during iteration. For a detailed method description, see AbstractMultiStorageIterator.
|
inline |
The number of dimensions is also contained in the iterator, but it is passed separately, so the casts below can't fail because of an iterator with a wrong number of dimensions.
References CGLOG, and sgpp::combigrid::IterationPolicy::value().
|
inlinevirtual |
|
inlinevirtual |
Implements sgpp::combigrid::AbstractMultiStorageIterator< T >.
References sgpp::combigrid::MultiIndexIterator::indexAt(), sgpp::combigrid::REQUESTED, sgpp::combigrid::LowestTreeStorageNode< T >::statusVector, and sgpp::combigrid::IterationPolicy::value().
|
inlinevirtual |
Implements sgpp::combigrid::AbstractMultiStorageIterator< T >.
References sgpp::combigrid::MultiIndexIterator::getMultiIndex().
|
inlinevirtual |
Implements sgpp::combigrid::AbstractMultiStorageIterator< T >.
References sgpp::combigrid::MultiIndexIterator::indexAt().
|
inlinevirtual |
Implements sgpp::combigrid::AbstractMultiStorageIterator< T >.
References sgpp::combigrid::MultiIndexIterator::isValid().
|
inlinevirtual |
Implements sgpp::combigrid::AbstractMultiStorageIterator< T >.
References chess::dim, h, sgpp::combigrid::MultiIndexIterator::indexAt(), sgpp::combigrid::IterationPolicy::moveAndGetValue(), sgpp::combigrid::MultiIndexIterator::moveToNext(), sgpp::combigrid::IterationPolicy::moveToNext(), sgpp::combigrid::IterationPolicy::reset(), and sgpp::combigrid::IterationPolicy::resetAndGetValue().
|
inlinevirtual |
Implements sgpp::combigrid::AbstractMultiStorageIterator< T >.
References sgpp::combigrid::LowestTreeStorageNode< T >::context, sgpp::combigrid::LowestTreeStorageNode< T >::ensureVectorEntry(), sgpp::combigrid::MultiIndexIterator::indexAt(), sgpp::combigrid::REQUESTED, sgpp::combigrid::LowestTreeStorageNode< T >::statusVector, and sgpp::combigrid::IterationPolicy::value().
|
inlinevirtual |
Sets a value at the current entry.
Implements sgpp::combigrid::AbstractMultiStorageIterator< T >.
References sgpp::combigrid::MultiIndexIterator::indexAt(), sgpp::combigrid::LowestTreeStorageNode< T >::set(), and sgpp::combigrid::IterationPolicy::value().
|
inlinevirtual |
Implements sgpp::combigrid::AbstractMultiStorageIterator< T >.
References sgpp::combigrid::LowestTreeStorageNode< T >::get(), sgpp::combigrid::MultiIndexIterator::indexAt(), and sgpp::combigrid::IterationPolicy::value().