array_wrapper.hpp File Reference
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  ArrayWrapper< T >
 This class is used as a shim for cereal to be able to serialize a raw pointer array. More...

 

Namespaces

 cereal
 

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 > 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.

Definition in file array_wrapper.hpp.

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.

Definition at line 87 of file array_wrapper.hpp.