mlpack
|
#include <cereal/archives/binary.hpp>
#include <cereal/archives/portable_binary.hpp>
#include <cereal/archives/xml.hpp>
#include <cereal/archives/json.hpp>
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... | |
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.
#define CEREAL_POINTER_ARRAY | ( | T, | |
S | |||
) | 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.
T | C Style array. |
S | Size of the array. |