mlpack
Classes | Namespaces | Macros | Functions
array_wrapper.hpp File Reference
#include <cereal/archives/binary.hpp>
#include <cereal/archives/portable_binary.hpp>
#include <cereal/archives/xml.hpp>
#include <cereal/archives/json.hpp>
Include dependency graph for array_wrapper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cereal::ArrayWrapper< T >
 This class is used as a shim for cereal to be able to serialize a raw pointer array. More...
 

Namespaces

 cereal
 Add an external serialization function for SpMat.
 

Macros

#define CEREAL_POINTER_ARRAY(T, S)   cereal::make_array(T, S)
 Cereal does not support the serialization of raw pointer. More...
 

Functions

template<class T , class S >
ArrayWrapper< T > cereal::make_array (T *&t, S &s)
 This function is used to serialized old c-style array. More...
 

Detailed Description

Author
Omar Shrit

Implementation of an array wrapper.

This implementation allows to seriliaze an array easily using cereal.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Macro Definition Documentation

◆ CEREAL_POINTER_ARRAY

#define CEREAL_POINTER_ARRAY (   T,
 
)    cereal::make_array(T, S)

Cereal does not support the serialization of raw pointer.

This macro enable developers to serialize old c-style array by using the above ArrayWrapper class which serialize each member independently.

Parameters
TC Style array.
SSize of the array.