SG++-Doxygen-Documentation
sgpp::combigrid::TreeStorageSerializationStrategy< T > Class Template Reference

This class provides a serialization strategy for TreeStorage<T>-objects (though not particularly well-compressed). More...

#include <TreeStorageSerializationStrategy.hpp>

Inheritance diagram for sgpp::combigrid::TreeStorageSerializationStrategy< T >:
sgpp::combigrid::AbstractSerializationStrategy< std::shared_ptr< TreeStorage< T > > >

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 ()
 

Detailed Description

template<typename T>
class sgpp::combigrid::TreeStorageSerializationStrategy< T >

This class provides a serialization strategy for TreeStorage<T>-objects (though not particularly well-compressed).

Constructor & Destructor Documentation

◆ TreeStorageSerializationStrategy()

template<typename T >
sgpp::combigrid::TreeStorageSerializationStrategy< T >::TreeStorageSerializationStrategy ( size_t  numDimensions,
std::shared_ptr< AbstractSerializationStrategy< T >>  innerStrategy = getDefaultStrategy() 
)
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.

Parameters
numDimensionsDimension of the tree storage.
innerStrategyStrategy that should be used to serialize the contained objects of the TreeStorage.

◆ ~TreeStorageSerializationStrategy()

template<typename T >
virtual sgpp::combigrid::TreeStorageSerializationStrategy< T >::~TreeStorageSerializationStrategy ( )
inlinevirtual

Member Function Documentation

◆ deserialize()

◆ serialize()


The documentation for this class was generated from the following file: