|class||PointerVectorWrapper< T >|
|The objective of this class is to create a wrapper for std::vector that hold pointers by adding also the size of the vector. More...|
|Cereal does not support the serialization of raw pointer. More...|
|PointerVectorWrapper< T >||make_pointer_vector (std::vector< T *> &t)|
|Serialize an std::vector that holds raw pointer object by encapsulating them into a smart pointer. More...|
Implementation of a vector wrapper to enable the serialization of the size of the vector in 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 pointer_vector_wrapper.hpp.
Cereal does not support the serialization of raw pointer.
This macro enable developers to serialize std vectors that holds raw pointers by using the above PointerVectorWrapper class which replace the internal raw pointers by smart pointer internally.
|T||std::vector that holds raw pointer to be serialized.|