SG++-Doxygen-Documentation
|
Interface for storage classes which store values of type T. More...
#include <AbstractMultiStorage.hpp>
Public Member Functions | |
virtual bool | containsIndex (MultiIndex const &index) const =0 |
virtual T & | get (MultiIndex const &index)=0 |
virtual std::shared_ptr< AbstractMultiStorageIterator< T > > | getGuidedIterator (MultiIndexIterator &indexIter, IterationPolicy const &policy=IterationPolicy::Default)=0 |
virtual size_t | getNumDimensions () const =0 |
virtual std::shared_ptr< AbstractMultiStorageIterator< T > > | getStoredDataIterator ()=0 |
virtual void | set (MultiIndex const &index, T const &value)=0 |
Unlike get(), this function does not activate a computation if there is no entry for the given multi-index in the storage. More... | |
virtual | ~AbstractMultiStorage () |
Interface for storage classes which store values of type T.
These values can be accessed via a multi-index. The (efficiency-optimized) TreeStorage class poses certain restrictions on which values are automatically included into the storage if other values are included.
|
inlinevirtual |
References sgpp::combigrid::AbstractMultiStorage< T >::containsIndex(), sgpp::combigrid::IterationPolicy::Default, sgpp::combigrid::AbstractMultiStorage< T >::getGuidedIterator(), sgpp::combigrid::AbstractMultiStorage< T >::getNumDimensions(), and sgpp::combigrid::AbstractMultiStorage< T >::getStoredDataIterator().
|
pure virtual |
Implemented in sgpp::combigrid::TreeStorage< T >.
Referenced by sgpp::combigrid::AbstractMultiStorage< T >::~AbstractMultiStorage().
|
pure virtual |
Implemented in sgpp::combigrid::TreeStorage< T >.
|
pure virtual |
indexIter | Iterator that defines which values should be iterated over. |
policy | Defines for each dimension the order that the values should be traversed in. |
Implemented in sgpp::combigrid::TreeStorage< T >.
Referenced by sgpp::combigrid::AbstractMultiStorage< T >::~AbstractMultiStorage().
|
pure virtual |
Implemented in sgpp::combigrid::TreeStorage< T >.
Referenced by sgpp::combigrid::AbstractMultiStorage< T >::~AbstractMultiStorage().
|
pure virtual |
Implemented in sgpp::combigrid::TreeStorage< T >.
Referenced by sgpp::combigrid::AbstractMultiStorage< T >::~AbstractMultiStorage().
|
pure virtual |
Unlike get(), this function does not activate a computation if there is no entry for the given multi-index in the storage.
Instead, it directly sets the given value.
Implemented in sgpp::combigrid::TreeStorage< T >.