SG++-Doxygen-Documentation
|
This class provides a serialization strategy for TreeStorage<T>-objects (though not particularly well-compressed). More...
#include <TreeStorageSerializationStrategy.hpp>
Public Member Functions | |
virtual std::shared_ptr< TreeStorage< T > > | deserialize (std::string const &input) |
virtual std::string | serialize (std::shared_ptr< TreeStorage< T >> const &storage) |
TreeStorageSerializationStrategy (size_t numDimensions, std::shared_ptr< AbstractSerializationStrategy< T >> innerStrategy=getDefaultStrategy()) | |
Constructor. More... | |
virtual | ~TreeStorageSerializationStrategy () |
Public Member Functions inherited from sgpp::combigrid::AbstractSerializationStrategy< std::shared_ptr< TreeStorage< T > > > | |
virtual std::string | serialize (std::shared_ptr< TreeStorage< T > > const &value)=0 |
virtual | ~AbstractSerializationStrategy () |
This class provides a serialization strategy for TreeStorage<T>-objects (though not particularly well-compressed).
|
inline |
Constructor.
A serialization strategy for the type T can be provided, otherwise, a DefaultSerializationStrategy<T> will be used. The serialization strategy may use any characters, this class will use escaping to deal with it.
numDimensions | Dimension of the tree storage. |
innerStrategy | Strategy that should be used to serialize the contained objects of the TreeStorage. |
|
inlinevirtual |
|
inlinevirtual |
Implements sgpp::combigrid::AbstractSerializationStrategy< std::shared_ptr< TreeStorage< T > > >.
References python.statsfileInfo::i, python.utils.statsfile2gnuplot::j, sgpp::combigrid::split(), and sgpp::combigrid::unescape().
Referenced by sgpp::combigrid::CombigridTreeStorage::deserialize(), python.learner.formatter.LearnedKnowledgeFormatter.LearnedKnowledgeFormatter::deserializeFromFile(), python.learner.formatter.GridFormatter.GridFormatter::deserializeFromFile(), python.utils.GzipSerializer.GzipSerializer::deserializeFromFile(), python.uq.analysis.asgc.ASGCKnowledgeFormatter.ASGCKnowledgeFormatter::deserializeFromFile(), python.uq.sampler.asgc.ASGCSamplerFormatter.ASGCSamplerFormatter::deserializeFromFile(), and python.uq.uq_setting.UQSettingFormatter.UQSettingFormatter::deserializeFromFile().
|
inlinevirtual |
References sgpp::combigrid::escape(), python.statsfileInfo::i, sgpp::combigrid::join(), and sgpp::combigrid::DefaultSerializationStrategy< T >::serialize().
Referenced by sgpp::combigrid::CombigridTreeStorage::serialize(), python.utils.GzipSerializer.GzipSerializer::serializeToFile(), python.learner.formatter.LearnerFormatter.LearnerFormatter::serializeToFile(), python.learner.formatter.LearnedKnowledgeFormatter.LearnedKnowledgeFormatter::serializeToFile(), python.learner.formatter.GridFormatter.GridFormatter::serializeToFile(), python.uq.analysis.asgc.ASGCKnowledgeFormatter.ASGCKnowledgeFormatter::serializeToFile(), python.uq.sampler.asgc.ASGCSamplerFormatter.ASGCSamplerFormatter::serializeToFile(), and python.uq.uq_setting.UQSettingFormatter.UQSettingFormatter::serializeToFile().