shark::ISerializable Class Reference

Abstracts serializing functionality. More...

#include <shark/Core/ISerializable.h>

+ Inheritance diagram for shark::ISerializable:

Public Member Functions

virtual ~ISerializable ()
 Virtual d'tor. More...
 
virtual void read (InArchive &archive)
 Read the component from the supplied archive. More...
 
virtual void write (OutArchive &archive) const
 Write the component to the supplied archive. More...
 
void load (InArchive &archive, unsigned int version)
 Versioned loading of components, calls read(...). More...
 
void save (OutArchive &archive, unsigned int version) const
 Versioned storing of components, calls write(...). More...
 
 BOOST_SERIALIZATION_SPLIT_MEMBER ()
 

Detailed Description

Abstracts serializing functionality.

In order to integrate alien serialization libraries with the components based on this interface, the classes boost::archive::polymorphic_iarchive and boost::archive::polymorphic_oarchive need to be implemented in terms of alien serialization library.

Definition at line 91 of file ISerializable.h.

Constructor & Destructor Documentation

◆ ~ISerializable()

virtual shark::ISerializable::~ISerializable ( )
inlinevirtual

Virtual d'tor.

Definition at line 96 of file ISerializable.h.

Member Function Documentation

◆ BOOST_SERIALIZATION_SPLIT_MEMBER()

shark::ISerializable::BOOST_SERIALIZATION_SPLIT_MEMBER ( )

Referenced by save().

◆ load()

void shark::ISerializable::load ( InArchive archive,
unsigned int  version 
)
inline

Versioned loading of components, calls read(...).

Definition at line 115 of file ISerializable.h.

References read().

◆ read()

virtual void shark::ISerializable::read ( InArchive archive)
inlinevirtual

Read the component from the supplied archive.

Parameters
[in,out]archiveThe archive to read from.

Reimplemented in shark::LabeledData< InputT, LabelT >, shark::LabeledData< InputType, unsigned int >, shark::LabeledData< InputType, LabelType >, shark::PointSearch, shark::NestedGridSearch, shark::IRpropPlusFull, shark::IRpropPlus, shark::BinaryLayer, shark::WeightedSumKernel< InputType >, shark::NeuronLayer< NeuronType, VectorType >, shark::LinearModel< InputType, ActivationFunction >, shark::BipolarLayer, shark::LinearModel< VectorType >, shark::RBM< VisibleLayerT, HiddenLayerT, randomT >, shark::PolynomialKernel< InputType >, shark::GaussianLayer, shark::ConcatenatedModel< VectorType >, shark::TruncatedExponentialLayer, shark::RpropPlus, shark::Data< Type >, shark::Data< RealVector >, shark::Data< LabelType >, shark::Data< shark::MultiTaskSample >, shark::Data< InputT >, shark::Data< unsigned int >, shark::Data< InputType >, shark::Data< LabelT >, shark::KernelExpansion< InputType >, shark::Conv2DModel< VectorType, ActivationFunction >, shark::ARDKernelUnconstrained< InputType >, shark::CSvmDerivative< InputType, CacheType >, shark::GaussianTaskKernel< InputTypeT >, shark::GridSearch, shark::OneVersusOneClassifier< InputType, VectorType >, shark::MonomialKernel< InputType >, shark::AbstractClustering< InputT >, shark::AbstractClustering< RealVector >, shark::ProductKernel< InputType >, shark::ProductKernel< MultiTaskSample< InputTypeT > >, shark::Classifier< Model >, shark::Classifier< detail::BaseNearestNeighbor< InputType, unsigned int > >, shark::Classifier< LinearModel< VectorType > >, shark::Classifier< MeanModel< CARTree< unsigned int > > >, shark::Classifier< KernelExpansion< InputType > >, shark::RBFLayer, shark::Normalizer< VectorType >, shark::DropoutLayer< VectorType >, shark::CMACMap, shark::Adam, shark::AbstractModel< InputTypeT, OutputTypeT, ParameterType >, shark::ScaledKernel< InputType >, shark::AbstractModel< InputType, RealVector >, shark::AbstractModel< CARTree< LabelType > ::InputType, RealVector, CARTree< LabelType > ::ParameterVectorType >, shark::AbstractModel< Model::InputType, unsigned int >, shark::AbstractModel< InputType, unsigned int, VectorType >, shark::AbstractModel< InputT, OutputT >, shark::AbstractModel< MeanModel< CARTree< unsigned int > > ::InputType, unsigned int >, shark::AbstractModel< RealVector, unsigned int >, shark::AbstractModel< RealVector, RealVector >, shark::AbstractModel< VectorType, blas::vector< VectorType ::value_type, VectorType ::device_type >, blas::vector< VectorType ::value_type, VectorType ::device_type > >, shark::AbstractModel< KernelExpansion< InputType > ::InputType, unsigned int >, shark::AbstractModel< LinearModel< VectorType > ::InputType, unsigned int >, shark::AbstractModel< VectorType, VectorType >, shark::AbstractModel< RealVector, LabelType >, shark::AbstractModel< detail::BaseNearestNeighbor< InputType, unsigned int > ::InputType, unsigned int >, shark::AbstractModel< CARTree< unsigned int > ::InputType, RealVector, CARTree< unsigned int > ::ParameterVectorType >, shark::AbstractModel< ModelType::InputType, RealVector, ModelType::ParameterVectorType >, shark::AbstractModel< InputType, blas::vector< InputType::value_type, InputType::device_type >, blas::vector< InputType::value_type, InputType::device_type > >, shark::AbstractModel< VectorType, VectorType, VectorType >, shark::AbstractModel< InputT, RealVector >, shark::AbstractModel< InputT, unsigned int >, shark::CrossEntropyMethod, shark::DiscreteKernel, shark::GaussianRbfKernel< InputType >, shark::IndicatorBasedRealCodedNSGAII< Indicator >, shark::LinearKernel< InputType >, shark::CARTree< LabelType >, shark::IndicatorBasedRealCodedNSGAII< NSGA3Indicator >, shark::CARTree< unsigned int >, shark::RpropMinus, shark::TypedFlags< Flag >, shark::TypedFlags< Feature >, shark::MeanModel< ModelType >, shark::MeanModel< CARTree< LabelType > >, shark::MeanModel< CARTree< unsigned int > >, shark::Centroids, shark::IndicatorBasedSteadyStateMOCMA< Indicator >, shark::SMSEMOA, shark::IndicatorBasedMOCMA< Indicator >, shark::LineSearch, shark::SteepestDescent, shark::OptimizationTrainer< Model, LabelTypeT >, shark::LBFGS, shark::CMSA, shark::CMA, shark::AbstractLineSearchOptimizer, shark::ElitistCMA, shark::ClusteringModel< InputT, OutputT >, shark::ClusteringModel< InputT, RealVector >, shark::ClusteringModel< InputT, unsigned int >, shark::SimplexDownhill, shark::CG, shark::MultiTaskSample< InputTypeT >, shark::AbstractMetric< InputTypeT >, shark::AbstractMetric< Batch< InputType >::type >, shark::AbstractMetric< std::size_t >, shark::AbstractMetric< InputType >, shark::AbstractMetric< MultiTaskSample< InputTypeT > >, and shark::BFGS.

Definition at line 102 of file ISerializable.h.

Referenced by load().

◆ save()

void shark::ISerializable::save ( OutArchive archive,
unsigned int  version 
) const
inline

Versioned storing of components, calls write(...).

Definition at line 124 of file ISerializable.h.

References BOOST_SERIALIZATION_SPLIT_MEMBER(), and write().

◆ write()

virtual void shark::ISerializable::write ( OutArchive archive) const
inlinevirtual

Write the component to the supplied archive.

Parameters
[in,out]archiveThe archive to write to.

Reimplemented in shark::LabeledData< InputT, LabelT >, shark::LabeledData< InputType, unsigned int >, shark::LabeledData< InputType, LabelType >, shark::PointSearch, shark::NestedGridSearch, shark::IRpropPlusFull, shark::IRpropPlus, shark::BinaryLayer, shark::WeightedSumKernel< InputType >, shark::NeuronLayer< NeuronType, VectorType >, shark::LinearModel< InputType, ActivationFunction >, shark::BipolarLayer, shark::LinearModel< VectorType >, shark::RBM< VisibleLayerT, HiddenLayerT, randomT >, shark::PolynomialKernel< InputType >, shark::ConcatenatedModel< VectorType >, shark::GaussianLayer, shark::TruncatedExponentialLayer, shark::Conv2DModel< VectorType, ActivationFunction >, shark::KernelExpansion< InputType >, shark::RpropPlus, shark::Data< Type >, shark::Data< RealVector >, shark::Data< LabelType >, shark::Data< shark::MultiTaskSample >, shark::Data< InputT >, shark::Data< unsigned int >, shark::Data< InputType >, shark::Data< LabelT >, shark::ModelKernel< InputType >, shark::ARDKernelUnconstrained< InputType >, shark::CSvmDerivative< InputType, CacheType >, shark::GaussianTaskKernel< InputTypeT >, shark::GridSearch, shark::OneVersusOneClassifier< InputType, VectorType >, shark::MonomialKernel< InputType >, shark::ProductKernel< InputType >, shark::ProductKernel< MultiTaskSample< InputTypeT > >, shark::AbstractClustering< InputT >, shark::AbstractClustering< RealVector >, shark::Classifier< Model >, shark::Classifier< detail::BaseNearestNeighbor< InputType, unsigned int > >, shark::Classifier< LinearModel< VectorType > >, shark::Classifier< MeanModel< CARTree< unsigned int > > >, shark::Classifier< KernelExpansion< InputType > >, shark::Normalizer< VectorType >, shark::RBFLayer, shark::DropoutLayer< VectorType >, shark::Adam, shark::AbstractModel< InputTypeT, OutputTypeT, ParameterType >, shark::AbstractModel< InputType, RealVector >, shark::AbstractModel< CARTree< LabelType > ::InputType, RealVector, CARTree< LabelType > ::ParameterVectorType >, shark::AbstractModel< Model::InputType, unsigned int >, shark::AbstractModel< InputType, unsigned int, VectorType >, shark::AbstractModel< InputT, OutputT >, shark::AbstractModel< MeanModel< CARTree< unsigned int > > ::InputType, unsigned int >, shark::AbstractModel< RealVector, unsigned int >, shark::AbstractModel< RealVector, RealVector >, shark::AbstractModel< VectorType, blas::vector< VectorType ::value_type, VectorType ::device_type >, blas::vector< VectorType ::value_type, VectorType ::device_type > >, shark::AbstractModel< KernelExpansion< InputType > ::InputType, unsigned int >, shark::AbstractModel< LinearModel< VectorType > ::InputType, unsigned int >, shark::AbstractModel< VectorType, VectorType >, shark::AbstractModel< RealVector, LabelType >, shark::AbstractModel< detail::BaseNearestNeighbor< InputType, unsigned int > ::InputType, unsigned int >, shark::AbstractModel< CARTree< unsigned int > ::InputType, RealVector, CARTree< unsigned int > ::ParameterVectorType >, shark::AbstractModel< ModelType::InputType, RealVector, ModelType::ParameterVectorType >, shark::AbstractModel< InputType, blas::vector< InputType::value_type, InputType::device_type >, blas::vector< InputType::value_type, InputType::device_type > >, shark::AbstractModel< VectorType, VectorType, VectorType >, shark::AbstractModel< InputT, RealVector >, shark::AbstractModel< InputT, unsigned int >, shark::ScaledKernel< InputType >, shark::CMACMap, shark::CrossEntropyMethod, shark::DiscreteKernel, shark::IndicatorBasedRealCodedNSGAII< Indicator >, shark::GaussianRbfKernel< InputType >, shark::IndicatorBasedRealCodedNSGAII< NSGA3Indicator >, shark::CARTree< LabelType >, shark::CARTree< unsigned int >, shark::LinearKernel< InputType >, shark::RpropMinus, shark::TypedFlags< Flag >, shark::TypedFlags< Feature >, shark::IndicatorBasedSteadyStateMOCMA< Indicator >, shark::MeanModel< ModelType >, shark::MeanModel< CARTree< LabelType > >, shark::MeanModel< CARTree< unsigned int > >, shark::SMSEMOA, shark::IndicatorBasedMOCMA< Indicator >, shark::Centroids, shark::LineSearch, shark::SteepestDescent, shark::OptimizationTrainer< Model, LabelTypeT >, shark::LBFGS, shark::CMSA, shark::CMA, shark::AbstractLineSearchOptimizer, shark::ClusteringModel< InputT, OutputT >, shark::ClusteringModel< InputT, RealVector >, shark::ClusteringModel< InputT, unsigned int >, shark::ElitistCMA, shark::SimplexDownhill, shark::AbstractMetric< InputTypeT >, shark::MultiTaskSample< InputTypeT >, shark::AbstractMetric< Batch< InputType >::type >, shark::AbstractMetric< std::size_t >, shark::AbstractMetric< InputType >, shark::AbstractMetric< MultiTaskSample< InputTypeT > >, shark::CG, and shark::BFGS.

Definition at line 109 of file ISerializable.h.

Referenced by save().


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