1 // (C) Copyright 2005 Matthias Troyer
3 // Use, modification and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 // Authors: Matthias Troyer
9 #ifndef BOOST_MPI_DETAIL_IGNORE_SKELETON_OARCHIVE_HPP
10 #define BOOST_MPI_DETAIL_IGNORE_SKELETON_OARCHIVE_HPP
12 #include <boost/serialization/pfto.hpp>
14 #include <boost/archive/detail/auto_link_archive.hpp>
15 #include <boost/archive/detail/common_oarchive.hpp>
16 #include <boost/archive/basic_archive.hpp>
17 #include <boost/archive/detail/oserializer.hpp>
18 #include <boost/serialization/collection_size_type.hpp>
20 namespace boost
{ namespace mpi
{ namespace detail
{
22 template<class Archive
>
23 class ignore_skeleton_oarchive
24 : public archive::detail::common_oarchive
<Archive
>
27 ignore_skeleton_oarchive()
28 : archive::detail::common_oarchive
<Archive
>(archive::no_header
)
32 #ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
35 friend class archive::detail::interface_oarchive
<Archive
>;
36 friend class archive::save_access
;
40 // intermediate level to support override of operators
41 // for templates in the absence of partial function
44 void save_override(T
const& t
, BOOST_PFTO
int)
46 archive::save(* this->This(), t
);
49 #define BOOST_ARCHIVE_IGNORE_IMPLEMENTATION(T) \
50 void save_override(T const & , int) \
53 BOOST_ARCHIVE_IGNORE_IMPLEMENTATION(archive::class_id_optional_type
)
54 BOOST_ARCHIVE_IGNORE_IMPLEMENTATION(archive::version_type
)
55 BOOST_ARCHIVE_IGNORE_IMPLEMENTATION(archive::class_id_type
)
56 BOOST_ARCHIVE_IGNORE_IMPLEMENTATION(archive::class_id_reference_type
)
57 BOOST_ARCHIVE_IGNORE_IMPLEMENTATION(archive::object_id_type
)
58 BOOST_ARCHIVE_IGNORE_IMPLEMENTATION(archive::object_reference_type
)
59 BOOST_ARCHIVE_IGNORE_IMPLEMENTATION(archive::tracking_type
)
60 BOOST_ARCHIVE_IGNORE_IMPLEMENTATION(archive::class_name_type
)
61 BOOST_ARCHIVE_IGNORE_IMPLEMENTATION(serialization::collection_size_type
)
63 #undef BOOST_ARCHIVE_IGNORE_IMPLEMENTATION
67 } } } // end namespace boost::mpi::detail
69 #endif // BOOST_MPI_DETAIL_IGNORE_SKELETON_OARCHIVE_HPP