#include <boost/serialization/export.hpp>
#include <boost/serialization/split_free.hpp>
#include <boost/serialization/split_member.hpp>
Go to the source code of this file.
◆ 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 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 | ) |
|
Value:
#define HPP_SERIALIZABLE_FREE(type)
Definition serialization-fwd.hh:73
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.