SG++-Doxygen-Documentation
|
Each inner node of the storage contains a vector of other nodes. More...
#include <InternalTreeStorageNode.hpp>
Public Member Functions | |
virtual bool | containsIndex (MultiIndex const &index, size_t depth=0) const |
virtual T & | get (MultiIndex const &index, size_t depth=0) |
InternalTreeStorageNode (TreeStorageContext< T > &context, size_t remainingDimensions) | |
virtual bool | isLeaf () const |
virtual size_t | numChildren () const |
virtual void | set (MultiIndex const &index, T const &value, size_t depth=0) |
virtual | ~InternalTreeStorageNode () |
Public Member Functions inherited from sgpp::combigrid::AbstractTreeStorageNode< T > | |
virtual | ~AbstractTreeStorageNode () |
Public Attributes | |
std::vector< std::unique_ptr< AbstractTreeStorageNode< T > > > | children |
TreeStorageContext< T > & | context |
Each inner node of the storage contains a vector of other nodes.
For a d-dimensional multi-index, to find a storage entry, the components of the multi-index are iterated over. Each component defines the index of the next child to be traversed. Because traversal would be slower if each leaf only contained one number, the nodes for the last dimension contain a vector of numbers (or Ts) instead of having children which themselves have one number. These nodes are represented by LowestTreeStorageNode objects, all other nodes are InternalTreeStorageNode objects. Each InternalTreeStorageNode contains at least one child, even if the final LowestTreeStorageNode contains no value. This is guaranteed by the constructor.
|
inline |
context | TreeStorageContext<T>-object containing information about the storage. |
remainingDimensions | Number of dimensions that come after this node (at least 1, since this is an internal node). |
|
inlinevirtual |
|
inlinevirtual |
index | Multi-index indicating the storage position. |
depth | Level of the node in the tree, starting from zero. |
Implements sgpp::combigrid::AbstractTreeStorageNode< T >.
|
inlinevirtual |
index | Index of the value to get. |
depth | Depth of the node, starting from zero. |
Implements sgpp::combigrid::AbstractTreeStorageNode< T >.
References sgpp::combigrid::TreeStorageContext< T >::numDimensions.
|
inlinevirtual |
Implements sgpp::combigrid::AbstractTreeStorageNode< T >.
|
inlinevirtual |
Implements sgpp::combigrid::AbstractTreeStorageNode< T >.
|
inlinevirtual |
index | Index of the value to set. |
value | Value to set. |
depth | Depth of the node, starting from zero. |
Implements sgpp::combigrid::AbstractTreeStorageNode< T >.
References sgpp::combigrid::TreeStorageContext< T >::numDimensions.
std::vector<std::unique_ptr<AbstractTreeStorageNode<T> > > sgpp::combigrid::InternalTreeStorageNode< T >::children |
Referenced by python.uq.uq_setting.UQSettingManager.UQSettingManager::getResults(), python.uq.uq_setting.UQSettingManager.UQSettingManager::loadResults(), python.uq.uq_setting.UQSetting.UQSetting::loadResults(), python.uq.uq_setting.UQSettingManager.UQSettingManager::run_sampleList(), python.uq.uq_setting.UQSetting.UQSetting::runSamples_dist(), python.uq.uq_setting.UQSettingManager.UQSettingManager::waitForResults(), and python.uq.uq_setting.UQSetting.UQSetting::waitForResults().
TreeStorageContext<T>& sgpp::combigrid::InternalTreeStorageNode< T >::context |