hpp-util 6.0.0
Debugging tools for the HPP project.
Loading...
Searching...
No Matches
serialization-fwd.hh File Reference
#include <boost/serialization/export.hpp>
#include <boost/serialization/split_free.hpp>
#include <boost/serialization/split_member.hpp>
Include dependency graph for serialization-fwd.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  boost
 
namespace  boost::serialization
 

Macros

#define HPP_SERIALIZABLE()
 
#define HPP_SERIALIZABLE_SPLIT()
 
#define HPP_SERIALIZABLE_FREE(type)
 
#define HPP_SERIALIZABLE_SPLIT_FREE(type)   HPP_SERIALIZABLE_FREE(type)
 

Macro Definition Documentation

◆ HPP_SERIALIZABLE

#define HPP_SERIALIZABLE ( )
Value:
friend class boost::serialization::access; \
\
template <class Archive> \
void serialize(Archive& ar, const unsigned int version)

Macro that should be put in a serializable class It declares function serialize.

Note
an empty constructor (that can leave the object unitialized) must exist.

◆ HPP_SERIALIZABLE_FREE

#define HPP_SERIALIZABLE_FREE (   type)
Value:
namespace boost { \
namespace serialization { \
template <class Archive> \
void serialize(Archive& ar, type& t, const unsigned int version); \
} \
}
Definition serialization-fwd.hh:37

Macro that should be put in a serializable class, using a free function It declares free function serialize. This macro must be called outside of any namespace.

Note
an empty constructor (that can leave the object unitialized) must exist.

◆ HPP_SERIALIZABLE_SPLIT

#define HPP_SERIALIZABLE_SPLIT ( )
Value:
BOOST_SERIALIZATION_SPLIT_MEMBER() \
friend class boost::serialization::access; \
\
template <class Archive> \
void save(Archive& ar, const unsigned int version) const; \
\
template <class Archive> \
void load(Archive& ar, const unsigned int version)

Macro that should be put in a serializable class It declares functions serialize, load and save. The two last must be implemented by the caller.

Note
an empty constructor (that can leave the object unitialized) must exist.

◆ HPP_SERIALIZABLE_SPLIT_FREE

#define HPP_SERIALIZABLE_SPLIT_FREE (   type)    HPP_SERIALIZABLE_FREE(type)

Macro that should be put in a serializable class, using a free function It declares free functions serialize, load and save. The two last must be implemented by the caller. This macro must be called outside of any namespace.

Note
an empty constructor (that can leave the object unitialized) must exist.